Permalink
Browse files

Fix unit specs in Ruby 1.8

  • Loading branch information...
1 parent 29506c9 commit 24eeae2a234581c4f9f3e79f1f2307c46a3dc5bf @cgriego committed Jun 27, 2012
Showing with 6 additions and 4 deletions.
  1. +6 −4 spec/unit/active_attr/attributes_spec.rb
@@ -41,11 +41,13 @@ def initialize(first_name=nil)
end
let :attributeless do
- Class.new do
- include Attributes
+ Class.new.tap do |attributeless|
+ attributeless.class_eval do
+ include Attributes
- def self.name
- "Foo"
+ def self.name
+ "Foo"
+ end
end
end
end

0 comments on commit 24eeae2

Please sign in to comment.