Displaying 1 result from an estimated 1 matches for "competition_spec".
2007 Mar 02
2
database modifications not rolling back
...database completely empty on completion.
FYI - I''m using Rspec 0.8.2 with matching revision of rspec_on_rails,
Rails 1.2.2 and Mysql.
spec_helper.rb
module CompetitionSpecHelper
def new_competition
code_to_create_a_new_competition
return the competition
end
end
competition_spec.rb
require File.dirname(__FILE__) + ''/../spec_helper''
context "Given a visible competition" do
include CompetitionSpecHelper
setup do
@competition = new_competition
@competition.process!
end
specify "should return true for started?" do...