spec/models/behaviour_spec.rb in reputation-0.0.4 vs spec/models/behaviour_spec.rb in reputation-0.0.5

- old
+ new

@@ -26,6 +26,10 @@ it "should allow the rule to be set using a Rule object" do ReputationBehaviour.create!(:user => User.create!, :rule => @rule, :metric => 0).rule.should eql @rule end + it "should be possible to recalculate a rule without raising an ArgumentError in Rails 3.1" do + expect { @user.behaviours.first.send :recalculate_rule }.should_not raise_error(ArgumentError) + end + end \ No newline at end of file