Skip to content

Commit

Permalink
Adds tests that the SmartProperties module can be extended onto other…
Browse files Browse the repository at this point in the history
… classes
  • Loading branch information
t6d committed May 11, 2012
1 parent 63e595c commit 7203315
Show file tree
Hide file tree
Showing 2 changed files with 17 additions and 1 deletion.
6 changes: 5 additions & 1 deletion lib/smart_properties.rb
@@ -1,5 +1,9 @@
require "smart_properties/version"

module SmartProperties
# Your code goes here...

def property

end

end
12 changes: 12 additions & 0 deletions spec/smart_properties_spec.rb
Expand Up @@ -2,4 +2,16 @@

describe SmartProperties do

context "when extending an other class" do

subject do
Class.new.extend(described_class)
end

it "should add a .property method" do
subject.should respond_to(:property)
end

end

end

0 comments on commit 7203315

Please sign in to comment.