Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP

Loading…

fix :) #1

Merged
merged 1 commit into from

2 participants

@releu

In the FactoryGirl 3.0 Factory.create is deprecated.

@wireframe
Owner

thanks for the pull request.

can you also bump the gemspec requirement to ensure factory_girl 3.x is being used?

@releu

It's not necessary, because FactoryGirl.create works in 2.x and 3.x versions both.

@wireframe wireframe merged commit 105b944 into from
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Commits on Apr 2, 2012
  1. @releu

    fix :)

    releu authored
This page is out of date. Refresh to see the latest.
View
2  lib/factory_girl/rspec/version.rb
@@ -1,5 +1,5 @@
module FactoryGirl
module Rspec
- VERSION = "0.0.1"
+ VERSION = "0.0.2"
end
end
View
2  lib/factory_girl/rspec/with.rb
@@ -4,7 +4,7 @@ module FactoryGirl
module Rspec
module With
def with(name, options = {})
- let(name) { ::Factory.create(name, options) }
+ let(name) { ::FactoryGirl.create(name, options) }
end
end
end
Something went wrong with that request. Please try again.