Skip to content
This repository
Browse code

Fix unit specs in Ruby 1.8

  • Loading branch information...
commit 24eeae2a234581c4f9f3e79f1f2307c46a3dc5bf 1 parent 29506c9
Chris Griego authored June 26, 2012

Showing 1 changed file with 6 additions and 4 deletions. Show diff stats Hide diff stats

  1. 10  spec/unit/active_attr/attributes_spec.rb
10  spec/unit/active_attr/attributes_spec.rb
@@ -41,11 +41,13 @@ def initialize(first_name=nil)
41 41
     end
42 42
 
43 43
     let :attributeless do
44  
-      Class.new do
45  
-        include Attributes
  44
+      Class.new.tap do |attributeless|
  45
+        attributeless.class_eval do
  46
+          include Attributes
46 47
 
47  
-        def self.name
48  
-          "Foo"
  48
+          def self.name
  49
+            "Foo"
  50
+          end
49 51
         end
50 52
       end
51 53
     end

0 notes on commit 24eeae2

Please sign in to comment.
Something went wrong with that request. Please try again.