Created
March 10, 2011 23:57
-
-
Save jfirebaugh/865209 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
diff --git a/spec/model/plugins_spec.rb b/spec/model/plugins_spec.rb | |
index 28d26c1..aa0f33f 100644 | |
--- a/spec/model/plugins_spec.rb | |
+++ b/spec/model/plugins_spec.rb | |
@@ -194,15 +194,15 @@ describe Sequel::Model, ".plugin" do | |
m = Module.new do | |
dm = Module.new do | |
def a; 1; end | |
- def b; 2; end | |
+ def b?; true; end | |
end | |
const_set(:DatasetMethods, dm) | |
end | |
@c.plugin m | |
@c.dataset.a.should == 1 | |
- @c.dataset.b.should == 2 | |
+ @c.dataset.b?.should == true | |
@c.a.should == 1 | |
- @c.b.should == 2 | |
+ @c.b?.should == true | |
end | |
it "should define class methods for all public instance methods in DatasetMethod" do |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment