Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Fix FactoryGirl naming convention

So now, we'll always refer to this Gem as FactoryGirl, regardless of
context. This commit is to make it consistence throughout the code base.
  • Loading branch information...
commit 40fc48d4887239ca2c191409fb49684e0dc253d7 1 parent 0c165ec
@sikachu sikachu authored joshuaclayton committed
View
4 GETTING_STARTED.md
@@ -258,8 +258,8 @@ Static and dynamic attributes can be ignored. Ignored attributes will be ignored
within attributes\_for and won't be set on the model, even if the attribute
exists or you attempt to override it.
-Within Factory Girl's dynamic attributes, you can access ignored attributes as
-you would expect. If you need to access the evaluator in a Factory Girl callback,
+Within FactoryGirl's dynamic attributes, you can access ignored attributes as
+you would expect. If you need to access the evaluator in a FactoryGirl callback,
you'll need to declare a second block argument (for the evaluator) and access
ignored attributes from there.
View
4 NEWS
@@ -104,14 +104,14 @@
Fix inline traits
2.4.0 (January 13, 2012)
- Refactor internals of Factory Girl to use anonymous class on which attributes
+ Refactor internals of FactoryGirl to use anonymous class on which attributes
get defined
Explicitly require Ruby 1.8.7 or higher in gemspec
Fix documentation
Add Gemnasium status to documentation
Supplying a Class to a factory that overrides to_s no longer results in
getting the wrong Class constructed
- Be more agnostic about ORMs when using columns in Factory Girl step
+ Be more agnostic about ORMs when using columns in FactoryGirl step
definitions
Test against Active Record 3.2.0.rc2
Update GETTING_STARTED to use Ruby syntax highlighting
View
4 README.md
@@ -28,9 +28,9 @@ and run `bundle install` from your shell.
Supported Ruby versions
-----------------------
-The Factory Girl 3.x series supports Ruby 1.9.x.
+The FactoryGirl 3.x series supports Ruby 1.9.x.
-For older versions of Ruby, please use the Factory Girl 2.x series.
+For older versions of Ruby, please use the FactoryGirl 2.x series.
More Information
----------------
View
2  features/factory_girl_steps.feature
@@ -207,7 +207,7 @@ Feature: Use step definitions generated by factories
| id | name |
| 123 | Joe |
- Scenario: pass a factory girl table as an argument and modify it
+ Scenario: pass a FactoryGirl table as an argument and modify it
Given these super users exist:
| id | Name |
| 123 | Joe |
View
20 features/find_definitions.feature
@@ -1,4 +1,4 @@
-Feature: Factory girl can find factory definitions correctly
+Feature: FactoryGirl can find factory definitions correctly
Scenario: Find definitions with a path
Given a file named "awesome_factories.rb" with:
"""
@@ -8,8 +8,8 @@ Feature: Factory girl can find factory definitions correctly
end
end
"""
- When "awesome_factories.rb" is added to Factory Girl's file definitions path
- And I create a "awesome_category" instance from Factory Girl
+ When "awesome_factories.rb" is added to FactoryGirl's file definitions path
+ And I create a "awesome_category" instance from FactoryGirl
Then I should find the following for the last category:
| name |
| awesome!!! |
@@ -23,8 +23,8 @@ Feature: Factory girl can find factory definitions correctly
end
end
"""
- When "awesome_factories.rb" is added to Factory Girl's file definitions path as an absolute path
- And I create a "another_awesome_category" instance from Factory Girl
+ When "awesome_factories.rb" is added to FactoryGirl's file definitions path as an absolute path
+ And I create a "another_awesome_category" instance from FactoryGirl
Then I should find the following for the last category:
| name |
| awesome!!! |
@@ -38,13 +38,13 @@ Feature: Factory girl can find factory definitions correctly
end
end
"""
- When "nested" is added to Factory Girl's file definitions path
- And I create a "great_category" instance from Factory Girl
+ When "nested" is added to FactoryGirl's file definitions path
+ And I create a "great_category" instance from FactoryGirl
Then I should find the following for the last category:
| name |
| great!!! |
- Scenario: Reload Factory Girl
+ Scenario: Reload FactoryGirl
Given a file named "nested/reload_factories.rb" with:
"""
FactoryGirl.define do
@@ -58,7 +58,7 @@ Feature: Factory girl can find factory definitions correctly
end
end
"""
- When "nested" is added to Factory Girl's file definitions path
+ When "nested" is added to FactoryGirl's file definitions path
And I append to "nested/reload_factories.rb" with:
"""
@@ -69,7 +69,7 @@ Feature: Factory girl can find factory definitions correctly
end
"""
And I reload factories
- And I create a "handy_category" instance from Factory Girl
+ And I create a "handy_category" instance from FactoryGirl
Then I should find the following for the last category:
| name |
| HANDY!!! |
View
6 features/step_definitions/factory_girl_steps.rb
@@ -7,7 +7,7 @@ def append_file_to_factory_girl_definitions_path(path_to_file)
World(FactoryGirlDefinitionsHelper)
-When /^"([^"]*)" is added to Factory Girl's file definitions path$/ do |file_name|
+When /^"([^"]*)" is added to FactoryGirl's file definitions path$/ do |file_name|
new_factory_file = File.join(current_dir, file_name.gsub(".rb", ""))
append_file_to_factory_girl_definitions_path(new_factory_file)
@@ -15,7 +15,7 @@ def append_file_to_factory_girl_definitions_path(path_to_file)
step %{I find definitions}
end
-When /^"([^"]*)" is added to Factory Girl's file definitions path as an absolute path$/ do |file_name|
+When /^"([^"]*)" is added to FactoryGirl's file definitions path as an absolute path$/ do |file_name|
new_factory_file = File.expand_path(File.join(current_dir, file_name.gsub(".rb", "")))
append_file_to_factory_girl_definitions_path(new_factory_file)
@@ -23,7 +23,7 @@ def append_file_to_factory_girl_definitions_path(path_to_file)
step %{I find definitions}
end
-When /^I create a "([^"]*)" instance from Factory Girl$/ do |factory_name|
+When /^I create a "([^"]*)" instance from FactoryGirl$/ do |factory_name|
FactoryGirl.create(factory_name)
end
Please sign in to comment.
Something went wrong with that request. Please try again.