Skip to content

Instantly share code, notes, and snippets.

@ELLIOTTCABLE
Created September 23, 2008 05:51
Show Gist options
  • Save ELLIOTTCABLE/12223 to your computer and use it in GitHub Desktop.
Save ELLIOTTCABLE/12223 to your computer and use it in GitHub Desktop.
# 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