mirror of
https://github.com/TracksApp/tracks.git
synced 2025-12-20 09:10:12 +01:00
Added Rspec and Webrat plugins and started porting Selenium on Rails tests to Rspec Plain Text Stories driving Webrat driving Selenium.
This commit is contained in:
parent
0600756bbf
commit
0f7d6f7a1d
602 changed files with 47788 additions and 29 deletions
11
vendor/plugins/rspec-rails/generators/rspec_model/templates/model_spec.rb
vendored
Executable file
11
vendor/plugins/rspec-rails/generators/rspec_model/templates/model_spec.rb
vendored
Executable file
|
|
@ -0,0 +1,11 @@
|
|||
require File.expand_path(File.dirname(__FILE__) + '<%= '/..' * class_nesting_depth %>/../spec_helper')
|
||||
|
||||
describe <%= class_name %> do
|
||||
before(:each) do
|
||||
@<%= file_name %> = <%= class_name %>.new
|
||||
end
|
||||
|
||||
it "should be valid" do
|
||||
@<%= file_name %>.should be_valid
|
||||
end
|
||||
end
|
||||
Loading…
Add table
Add a link
Reference in a new issue