Created
September 23, 2008 05:51
-
-
Save ELLIOTTCABLE/12223 to your computer and use it in GitHub Desktop.
This file contains hidden or 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
# Need the space so we don't see Module#attr_*#attr_reader | |
describe ' #attr_reader', :shared => true do | |
it 'should create a reader method from a single symbol' do | |
@class.instance_eval do | |
attr_reader :foo | |
end | |
@class.new.should respond_to :foo | |
end | |
end |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment