Skip to content

Instantly share code, notes, and snippets.

@jfirebaugh
Created March 10, 2011 23:57
Show Gist options
  • Save jfirebaugh/865209 to your computer and use it in GitHub Desktop.
Save jfirebaugh/865209 to your computer and use it in GitHub Desktop.
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