Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Get spec passing on 1.9.2

  • Loading branch information...
commit cd984633bc9d735ef3dd51c3ed4afd0fd4fde80a 1 parent a5b3a97
@joshuaclayton joshuaclayton authored
Showing with 6 additions and 6 deletions.
  1. +6 −6 spec/acceptance/initialize_with_spec.rb
View
12 spec/acceptance/initialize_with_spec.rb
@@ -14,7 +14,7 @@ def self.construct(name, age)
FactoryGirl.define do
factory :user do
- initialize_with { User.construct("John Doe", 21) }
+ initialize_with { ::User.construct("John Doe", 21) }
end
end
end
@@ -42,7 +42,7 @@ def self.construct(name)
name { "Handsome Chap" }
end
- initialize_with { User.construct(name) }
+ initialize_with { ::User.construct(name) }
end
end
end
@@ -67,7 +67,7 @@ def self.construct(name)
factory :user do
name { "Handsome Chap" }
- initialize_with { User.construct(name) }
+ initialize_with { ::User.construct(name) }
end
end
end
@@ -100,7 +100,7 @@ def initialize(name, data)
name "My Awesome Report"
end
- initialize_with { ReportGenerator.new(name, FactoryGirl.generate(:random_data)) }
+ initialize_with { ::ReportGenerator.new(name, ::FactoryGirl.generate(:random_data)) }
end
end
end
@@ -132,7 +132,7 @@ def initialize(name)
name "Great"
end
- initialize_with { Awesome.new(name) }
+ initialize_with { ::Awesome.new(name) }
factory :sub_awesome do
ignore do
@@ -141,7 +141,7 @@ def initialize(name)
end
factory :super_awesome do
- initialize_with { Awesome.new("Super") }
+ initialize_with { ::Awesome.new("Super") }
end
end
end
Please sign in to comment.
Something went wrong with that request. Please try again.