challah 0.5.2 → 0.5.3

Sign up to get free protection for your applications and to get access to all the features.
Files changed (152) hide show
  1. data/CHANGELOG.md +9 -2
  2. data/README.md +18 -18
  3. data/lib/challah/test.rb +22 -5
  4. data/lib/challah/version.rb +1 -1
  5. data/test/audit_test.rb +32 -32
  6. data/test/controller_test.rb +9 -9
  7. data/test/cookie_store_test.rb +25 -25
  8. data/test/factories.rb +7 -7
  9. data/test/helper.rb +14 -12
  10. data/test/permission_test.rb +14 -14
  11. data/test/restrictions_controller_test.rb +29 -30
  12. data/test/role_test.rb +26 -26
  13. data/test/session_test.rb +65 -65
  14. data/test/sessions_controller_test.rb +13 -13
  15. data/test/simple_cookie_store_test.rb +25 -25
  16. data/test/user_test.rb +79 -79
  17. data/vendor/bundle/cache/factory_girl-3.0.0.gem +0 -0
  18. data/vendor/bundle/gems/factory_girl-3.0.0/Appraisals +11 -0
  19. data/vendor/bundle/gems/factory_girl-3.0.0/CONTRIBUTION_GUIDELINES.md +10 -0
  20. data/vendor/bundle/gems/factory_girl-3.0.0/Changelog +168 -0
  21. data/vendor/bundle/gems/factory_girl-3.0.0/GETTING_STARTED.md +735 -0
  22. data/vendor/bundle/gems/factory_girl-3.0.0/Gemfile +5 -0
  23. data/vendor/bundle/gems/factory_girl-3.0.0/Gemfile.lock +95 -0
  24. data/vendor/bundle/gems/factory_girl-3.0.0/LICENSE +19 -0
  25. data/vendor/bundle/gems/factory_girl-3.0.0/README.md +70 -0
  26. data/vendor/bundle/gems/factory_girl-3.0.0/Rakefile +38 -0
  27. data/vendor/bundle/gems/factory_girl-3.0.0/cucumber.yml +1 -0
  28. data/vendor/bundle/gems/factory_girl-3.0.0/factory_girl.gemspec +38 -0
  29. data/vendor/bundle/gems/factory_girl-3.0.0/features/factory_girl_steps.feature +237 -0
  30. data/vendor/bundle/gems/factory_girl-3.0.0/features/find_definitions.feature +75 -0
  31. data/vendor/bundle/gems/factory_girl-3.0.0/features/step_definitions/database_steps.rb +42 -0
  32. data/vendor/bundle/gems/factory_girl-3.0.0/features/step_definitions/factory_girl_steps.rb +43 -0
  33. data/vendor/bundle/gems/factory_girl-3.0.0/features/support/env.rb +11 -0
  34. data/vendor/bundle/gems/factory_girl-3.0.0/features/support/factories.rb +119 -0
  35. data/vendor/bundle/gems/factory_girl-3.0.0/gemfiles/2.3.gemfile +7 -0
  36. data/vendor/bundle/gems/factory_girl-3.0.0/gemfiles/3.0.gemfile +7 -0
  37. data/vendor/bundle/gems/factory_girl-3.0.0/gemfiles/3.0.gemfile.lock +86 -0
  38. data/vendor/bundle/gems/factory_girl-3.0.0/gemfiles/3.1.gemfile +7 -0
  39. data/vendor/bundle/gems/factory_girl-3.0.0/gemfiles/3.1.gemfile.lock +95 -0
  40. data/vendor/bundle/gems/factory_girl-3.0.0/gemfiles/3.2.gemfile +7 -0
  41. data/vendor/bundle/gems/factory_girl-3.0.0/gemfiles/3.2.gemfile.lock +93 -0
  42. data/vendor/bundle/gems/factory_girl-3.0.0/lib/factory_girl.rb +69 -0
  43. data/vendor/bundle/gems/factory_girl-3.0.0/lib/factory_girl/aliases.rb +19 -0
  44. data/vendor/bundle/gems/factory_girl-3.0.0/lib/factory_girl/attribute.rb +40 -0
  45. data/vendor/bundle/gems/factory_girl-3.0.0/lib/factory_girl/attribute/association.rb +23 -0
  46. data/vendor/bundle/gems/factory_girl-3.0.0/lib/factory_girl/attribute/dynamic.rb +20 -0
  47. data/vendor/bundle/gems/factory_girl-3.0.0/lib/factory_girl/attribute/sequence.rb +17 -0
  48. data/vendor/bundle/gems/factory_girl-3.0.0/lib/factory_girl/attribute/static.rb +15 -0
  49. data/vendor/bundle/gems/factory_girl-3.0.0/lib/factory_girl/attribute_assigner.rb +73 -0
  50. data/vendor/bundle/gems/factory_girl-3.0.0/lib/factory_girl/attribute_list.rb +54 -0
  51. data/vendor/bundle/gems/factory_girl-3.0.0/lib/factory_girl/callback.rb +33 -0
  52. data/vendor/bundle/gems/factory_girl-3.0.0/lib/factory_girl/declaration.rb +22 -0
  53. data/vendor/bundle/gems/factory_girl-3.0.0/lib/factory_girl/declaration/association.rb +25 -0
  54. data/vendor/bundle/gems/factory_girl-3.0.0/lib/factory_girl/declaration/dynamic.rb +25 -0
  55. data/vendor/bundle/gems/factory_girl-3.0.0/lib/factory_girl/declaration/implicit.rb +32 -0
  56. data/vendor/bundle/gems/factory_girl-3.0.0/lib/factory_girl/declaration/static.rb +25 -0
  57. data/vendor/bundle/gems/factory_girl-3.0.0/lib/factory_girl/declaration_list.rb +48 -0
  58. data/vendor/bundle/gems/factory_girl-3.0.0/lib/factory_girl/definition.rb +76 -0
  59. data/vendor/bundle/gems/factory_girl-3.0.0/lib/factory_girl/definition_proxy.rb +159 -0
  60. data/vendor/bundle/gems/factory_girl-3.0.0/lib/factory_girl/errors.rb +19 -0
  61. data/vendor/bundle/gems/factory_girl-3.0.0/lib/factory_girl/evaluator.rb +76 -0
  62. data/vendor/bundle/gems/factory_girl-3.0.0/lib/factory_girl/evaluator_class_definer.rb +34 -0
  63. data/vendor/bundle/gems/factory_girl-3.0.0/lib/factory_girl/factory.rb +145 -0
  64. data/vendor/bundle/gems/factory_girl-3.0.0/lib/factory_girl/factory_runner.rb +24 -0
  65. data/vendor/bundle/gems/factory_girl-3.0.0/lib/factory_girl/find_definitions.rb +25 -0
  66. data/vendor/bundle/gems/factory_girl-3.0.0/lib/factory_girl/null_factory.rb +15 -0
  67. data/vendor/bundle/gems/factory_girl-3.0.0/lib/factory_girl/null_object.rb +7 -0
  68. data/vendor/bundle/gems/factory_girl-3.0.0/lib/factory_girl/registry.rb +46 -0
  69. data/vendor/bundle/gems/factory_girl-3.0.0/lib/factory_girl/reload.rb +8 -0
  70. data/vendor/bundle/gems/factory_girl-3.0.0/lib/factory_girl/sequence.rb +24 -0
  71. data/vendor/bundle/gems/factory_girl-3.0.0/lib/factory_girl/step_definitions.rb +130 -0
  72. data/vendor/bundle/gems/factory_girl-3.0.0/lib/factory_girl/strategy.rb +32 -0
  73. data/vendor/bundle/gems/factory_girl-3.0.0/lib/factory_girl/strategy/attributes_for.rb +12 -0
  74. data/vendor/bundle/gems/factory_girl-3.0.0/lib/factory_girl/strategy/build.rb +15 -0
  75. data/vendor/bundle/gems/factory_girl-3.0.0/lib/factory_girl/strategy/create.rb +17 -0
  76. data/vendor/bundle/gems/factory_girl-3.0.0/lib/factory_girl/strategy/stub.rb +61 -0
  77. data/vendor/bundle/gems/factory_girl-3.0.0/lib/factory_girl/strategy_calculator.rb +29 -0
  78. data/vendor/bundle/gems/factory_girl-3.0.0/lib/factory_girl/syntax.rb +16 -0
  79. data/vendor/bundle/gems/factory_girl-3.0.0/lib/factory_girl/syntax/blueprint.rb +42 -0
  80. data/vendor/bundle/gems/factory_girl-3.0.0/lib/factory_girl/syntax/default.rb +56 -0
  81. data/vendor/bundle/gems/factory_girl-3.0.0/lib/factory_girl/syntax/generate.rb +70 -0
  82. data/vendor/bundle/gems/factory_girl-3.0.0/lib/factory_girl/syntax/make.rb +45 -0
  83. data/vendor/bundle/gems/factory_girl-3.0.0/lib/factory_girl/syntax/methods.rb +136 -0
  84. data/vendor/bundle/gems/factory_girl-3.0.0/lib/factory_girl/syntax/sham.rb +45 -0
  85. data/vendor/bundle/gems/factory_girl-3.0.0/lib/factory_girl/syntax/vintage.rb +130 -0
  86. data/vendor/bundle/gems/factory_girl-3.0.0/lib/factory_girl/trait.rb +29 -0
  87. data/vendor/bundle/gems/factory_girl-3.0.0/lib/factory_girl/version.rb +4 -0
  88. data/vendor/bundle/gems/factory_girl-3.0.0/spec/acceptance/aliases_spec.rb +19 -0
  89. data/vendor/bundle/gems/factory_girl-3.0.0/spec/acceptance/attribute_aliases_spec.rb +45 -0
  90. data/vendor/bundle/gems/factory_girl-3.0.0/spec/acceptance/attribute_existing_on_object_spec.rb +68 -0
  91. data/vendor/bundle/gems/factory_girl-3.0.0/spec/acceptance/attributes_for_spec.rb +89 -0
  92. data/vendor/bundle/gems/factory_girl-3.0.0/spec/acceptance/attributes_from_instance_spec.rb +53 -0
  93. data/vendor/bundle/gems/factory_girl-3.0.0/spec/acceptance/attributes_ordered_spec.rb +51 -0
  94. data/vendor/bundle/gems/factory_girl-3.0.0/spec/acceptance/build_list_spec.rb +41 -0
  95. data/vendor/bundle/gems/factory_girl-3.0.0/spec/acceptance/build_spec.rb +89 -0
  96. data/vendor/bundle/gems/factory_girl-3.0.0/spec/acceptance/build_stubbed_spec.rb +104 -0
  97. data/vendor/bundle/gems/factory_girl-3.0.0/spec/acceptance/callbacks_spec.rb +47 -0
  98. data/vendor/bundle/gems/factory_girl-3.0.0/spec/acceptance/create_list_spec.rb +82 -0
  99. data/vendor/bundle/gems/factory_girl-3.0.0/spec/acceptance/create_spec.rb +117 -0
  100. data/vendor/bundle/gems/factory_girl-3.0.0/spec/acceptance/define_child_before_parent_spec.rb +21 -0
  101. data/vendor/bundle/gems/factory_girl-3.0.0/spec/acceptance/definition_spec.rb +26 -0
  102. data/vendor/bundle/gems/factory_girl-3.0.0/spec/acceptance/definition_without_block_spec.rb +15 -0
  103. data/vendor/bundle/gems/factory_girl-3.0.0/spec/acceptance/initialize_with_spec.rb +147 -0
  104. data/vendor/bundle/gems/factory_girl-3.0.0/spec/acceptance/modify_factories_spec.rb +184 -0
  105. data/vendor/bundle/gems/factory_girl-3.0.0/spec/acceptance/modify_inherited_spec.rb +52 -0
  106. data/vendor/bundle/gems/factory_girl-3.0.0/spec/acceptance/nested_attributes_spec.rb +32 -0
  107. data/vendor/bundle/gems/factory_girl-3.0.0/spec/acceptance/overrides_spec.rb +61 -0
  108. data/vendor/bundle/gems/factory_girl-3.0.0/spec/acceptance/parent_spec.rb +90 -0
  109. data/vendor/bundle/gems/factory_girl-3.0.0/spec/acceptance/sequence_spec.rb +33 -0
  110. data/vendor/bundle/gems/factory_girl-3.0.0/spec/acceptance/stub_spec.rb +62 -0
  111. data/vendor/bundle/gems/factory_girl-3.0.0/spec/acceptance/syntax/blueprint_spec.rb +34 -0
  112. data/vendor/bundle/gems/factory_girl-3.0.0/spec/acceptance/syntax/generate_spec.rb +59 -0
  113. data/vendor/bundle/gems/factory_girl-3.0.0/spec/acceptance/syntax/make_spec.rb +52 -0
  114. data/vendor/bundle/gems/factory_girl-3.0.0/spec/acceptance/syntax/sham_spec.rb +43 -0
  115. data/vendor/bundle/gems/factory_girl-3.0.0/spec/acceptance/syntax/vintage_spec.rb +217 -0
  116. data/vendor/bundle/gems/factory_girl-3.0.0/spec/acceptance/traits_spec.rb +421 -0
  117. data/vendor/bundle/gems/factory_girl-3.0.0/spec/acceptance/transient_attributes_spec.rb +124 -0
  118. data/vendor/bundle/gems/factory_girl-3.0.0/spec/factory_girl/aliases_spec.rb +31 -0
  119. data/vendor/bundle/gems/factory_girl-3.0.0/spec/factory_girl/attribute/association_spec.rb +28 -0
  120. data/vendor/bundle/gems/factory_girl-3.0.0/spec/factory_girl/attribute/dynamic_spec.rb +52 -0
  121. data/vendor/bundle/gems/factory_girl-3.0.0/spec/factory_girl/attribute/sequence_spec.rb +16 -0
  122. data/vendor/bundle/gems/factory_girl-3.0.0/spec/factory_girl/attribute/static_spec.rb +19 -0
  123. data/vendor/bundle/gems/factory_girl-3.0.0/spec/factory_girl/attribute_list_spec.rb +78 -0
  124. data/vendor/bundle/gems/factory_girl-3.0.0/spec/factory_girl/attribute_spec.rb +16 -0
  125. data/vendor/bundle/gems/factory_girl-3.0.0/spec/factory_girl/callback_spec.rb +41 -0
  126. data/vendor/bundle/gems/factory_girl-3.0.0/spec/factory_girl/declaration/implicit_spec.rb +25 -0
  127. data/vendor/bundle/gems/factory_girl-3.0.0/spec/factory_girl/declaration_list_spec.rb +71 -0
  128. data/vendor/bundle/gems/factory_girl-3.0.0/spec/factory_girl/definition_proxy_spec.rb +197 -0
  129. data/vendor/bundle/gems/factory_girl-3.0.0/spec/factory_girl/definition_spec.rb +104 -0
  130. data/vendor/bundle/gems/factory_girl-3.0.0/spec/factory_girl/evaluator_class_definer_spec.rb +54 -0
  131. data/vendor/bundle/gems/factory_girl-3.0.0/spec/factory_girl/factory_spec.rb +279 -0
  132. data/vendor/bundle/gems/factory_girl-3.0.0/spec/factory_girl/find_definitions_spec.rb +110 -0
  133. data/vendor/bundle/gems/factory_girl-3.0.0/spec/factory_girl/null_factory_spec.rb +13 -0
  134. data/vendor/bundle/gems/factory_girl-3.0.0/spec/factory_girl/null_object_spec.rb +8 -0
  135. data/vendor/bundle/gems/factory_girl-3.0.0/spec/factory_girl/registry_spec.rb +81 -0
  136. data/vendor/bundle/gems/factory_girl-3.0.0/spec/factory_girl/sequence_spec.rb +47 -0
  137. data/vendor/bundle/gems/factory_girl-3.0.0/spec/factory_girl/strategy/attributes_for_spec.rb +18 -0
  138. data/vendor/bundle/gems/factory_girl-3.0.0/spec/factory_girl/strategy/build_spec.rb +7 -0
  139. data/vendor/bundle/gems/factory_girl-3.0.0/spec/factory_girl/strategy/create_spec.rb +13 -0
  140. data/vendor/bundle/gems/factory_girl-3.0.0/spec/factory_girl/strategy/stub_spec.rb +40 -0
  141. data/vendor/bundle/gems/factory_girl-3.0.0/spec/factory_girl/strategy_calculator_spec.rb +33 -0
  142. data/vendor/bundle/gems/factory_girl-3.0.0/spec/factory_girl/strategy_spec.rb +21 -0
  143. data/vendor/bundle/gems/factory_girl-3.0.0/spec/factory_girl_spec.rb +22 -0
  144. data/vendor/bundle/gems/factory_girl-3.0.0/spec/spec_helper.rb +26 -0
  145. data/vendor/bundle/gems/factory_girl-3.0.0/spec/support/macros/define_constant.rb +86 -0
  146. data/vendor/bundle/gems/factory_girl-3.0.0/spec/support/matchers/callback.rb +9 -0
  147. data/vendor/bundle/gems/factory_girl-3.0.0/spec/support/matchers/declaration.rb +71 -0
  148. data/vendor/bundle/gems/factory_girl-3.0.0/spec/support/matchers/delegate.rb +44 -0
  149. data/vendor/bundle/gems/factory_girl-3.0.0/spec/support/matchers/trait.rb +9 -0
  150. data/vendor/bundle/gems/factory_girl-3.0.0/spec/support/shared_examples/strategy.rb +104 -0
  151. data/vendor/bundle/specifications/factory_girl-3.0.0.gemspec +62 -0
  152. metadata +147 -12
@@ -0,0 +1,86 @@
1
+ require 'active_record'
2
+
3
+ module DefineConstantMacros
4
+ def define_class(path, base = Object, &block)
5
+ namespace, class_name = *constant_path(path)
6
+ klass = Class.new(base)
7
+ namespace.const_set(class_name, klass)
8
+ klass.class_eval(&block) if block_given?
9
+ @defined_constants << path
10
+ klass
11
+ end
12
+
13
+ def define_model(name, columns = {}, &block)
14
+ model = define_class(name, ActiveRecord::Base, &block)
15
+ create_table(model.table_name) do |table|
16
+ columns.each do |name, type|
17
+ table.column name, type
18
+ end
19
+ end
20
+ model
21
+ end
22
+
23
+ def create_table(table_name, &block)
24
+ connection = ActiveRecord::Base.connection
25
+
26
+ begin
27
+ connection.execute("DROP TABLE IF EXISTS #{table_name}")
28
+ connection.create_table(table_name, &block)
29
+ @created_tables << table_name
30
+ connection
31
+ rescue Exception => exception
32
+ connection.execute("DROP TABLE IF EXISTS #{table_name}")
33
+ raise exception
34
+ end
35
+ end
36
+
37
+ def constant_path(constant_name)
38
+ names = constant_name.split('::')
39
+ class_name = names.pop
40
+ namespace = names.inject(Object) { |result, name| result.const_get(name) }
41
+ [namespace, class_name]
42
+ end
43
+
44
+ def default_constants
45
+ @defined_constants ||= []
46
+ @created_tables ||= []
47
+ end
48
+
49
+ def clear_generated_constants
50
+ @defined_constants.reverse.each do |path|
51
+ namespace, class_name = *constant_path(path)
52
+ namespace.send(:remove_const, class_name)
53
+ end
54
+
55
+ @defined_constants.clear
56
+ end
57
+
58
+ def clear_generated_tables
59
+ @created_tables.each do |table_name|
60
+ ActiveRecord::Base.
61
+ connection.
62
+ execute("DROP TABLE IF EXISTS #{table_name}")
63
+ end
64
+ @created_tables.clear
65
+ end
66
+ end
67
+
68
+ RSpec.configure do |config|
69
+ config.include DefineConstantMacros
70
+
71
+ config.before(:all) do
72
+ ActiveRecord::Base.establish_connection(
73
+ adapter: 'sqlite3',
74
+ database: File.join(File.dirname(__FILE__), 'test.db')
75
+ )
76
+ end
77
+
78
+ config.before do
79
+ default_constants
80
+ end
81
+
82
+ config.after do
83
+ clear_generated_constants
84
+ clear_generated_tables
85
+ end
86
+ end
@@ -0,0 +1,9 @@
1
+ RSpec::Matchers.define :have_callback do |callback_name|
2
+ match do |instance|
3
+ instance.callbacks.include?(FactoryGirl::Callback.new(callback_name, @block))
4
+ end
5
+
6
+ chain :with_block do |block|
7
+ @block = block
8
+ end
9
+ end
@@ -0,0 +1,71 @@
1
+ module DeclarationMatchers
2
+ def have_static_declaration(name)
3
+ DeclarationMatcher.new(:static).named(name)
4
+ end
5
+
6
+ def have_dynamic_declaration(name)
7
+ DeclarationMatcher.new(:dynamic).named(name)
8
+ end
9
+
10
+ def have_association_declaration(name)
11
+ DeclarationMatcher.new(:association).named(name)
12
+ end
13
+
14
+ def have_implicit_declaration(name)
15
+ DeclarationMatcher.new(:implicit).named(name)
16
+ end
17
+
18
+ class DeclarationMatcher
19
+ def initialize(declaration_type)
20
+ @declaration_type = declaration_type
21
+ end
22
+
23
+ def matches?(subject)
24
+ subject.declarations.include?(expected_declaration)
25
+ end
26
+
27
+ def named(name)
28
+ @name = name
29
+ self
30
+ end
31
+
32
+ def ignored
33
+ @ignored = true
34
+ self
35
+ end
36
+
37
+ def with_value(value)
38
+ @value = value
39
+ self
40
+ end
41
+
42
+ def with_factory(factory)
43
+ @factory = factory
44
+ self
45
+ end
46
+
47
+ def with_options(options)
48
+ @options = options
49
+ self
50
+ end
51
+
52
+ private
53
+
54
+ def expected_declaration
55
+ case @declaration_type
56
+ when :static then FactoryGirl::Declaration::Static.new(@name, @value, ignored?)
57
+ when :dynamic then FactoryGirl::Declaration::Dynamic.new(@name, ignored?, @value)
58
+ when :implicit then FactoryGirl::Declaration::Implicit.new(@name, @factory, ignored?)
59
+ when :association then FactoryGirl::Declaration::Association.new(@name, options)
60
+ end
61
+ end
62
+
63
+ def ignored?
64
+ !!@ignored
65
+ end
66
+
67
+ def options
68
+ @options || {}
69
+ end
70
+ end
71
+ end
@@ -0,0 +1,44 @@
1
+ RSpec::Matchers.define :delegate do |delegated_method|
2
+ chain :to do |target_method|
3
+ @target_method = target_method
4
+ end
5
+
6
+ chain :as do |method_on_target|
7
+ @method_on_target = method_on_target
8
+ end
9
+
10
+ chain :with_arguments do |args|
11
+ @args = args
12
+ end
13
+
14
+ match do |instance|
15
+ extend Mocha::API
16
+
17
+ @instance = instance
18
+ @args ||= []
19
+ return_value = 'stubbed return value'
20
+ method_on_target = @method_on_target || delegated_method
21
+ stubbed_target = stub('stubbed_target', method_on_target => return_value)
22
+ @instance.stubs(@target_method => stubbed_target)
23
+ begin
24
+ @instance.send(delegated_method, *@args) == return_value
25
+ rescue NoMethodError
26
+ false
27
+ end
28
+ end
29
+
30
+ failure_message do
31
+ if Class === @instance
32
+ message = "expected #{@instance.name} "
33
+ prefix = '.'
34
+ else
35
+ message = "expected #{@instance.class.name} "
36
+ prefix = '#'
37
+ end
38
+ message << "to delegate #{prefix}#{delegated_method} to #{prefix}#{@target_method}"
39
+ if @method_on_target
40
+ message << ".#{@method_on_target}"
41
+ end
42
+ message
43
+ end
44
+ end
@@ -0,0 +1,9 @@
1
+ RSpec::Matchers.define :have_trait do |trait_name|
2
+ match do |instance|
3
+ instance.defined_traits.include?(FactoryGirl::Trait.new(trait_name, &@block))
4
+ end
5
+
6
+ chain :with_block do |block|
7
+ @block = block
8
+ end
9
+ end
@@ -0,0 +1,104 @@
1
+ shared_examples_for "strategy without association support" do
2
+ let(:attribute) { FactoryGirl::Attribute::Association.new(:user, :user, {}) }
3
+
4
+ def association_named(name, overrides)
5
+ runner = FactoryGirl::FactoryRunner.new(name, FactoryGirl::Strategy::Build, [overrides])
6
+ subject.association(runner)
7
+ end
8
+
9
+ it "returns nil when accessing an association" do
10
+ association_named(:user, {}).should be_nil
11
+ end
12
+
13
+ it "does not attempt to look up the factory when accessing the association" do
14
+ FactoryGirl.stubs(:factory_by_name)
15
+ association_named(:awesome, {})
16
+ FactoryGirl.should have_received(:factory_by_name).never
17
+ end
18
+ end
19
+
20
+ shared_examples_for "strategy with association support" do |factory_girl_strategy_class|
21
+ let(:factory) { stub("associate_factory") }
22
+
23
+ def association_named(name, strategy, overrides)
24
+ runner = FactoryGirl::FactoryRunner.new(name, strategy, [overrides])
25
+ subject.association(runner)
26
+ end
27
+
28
+ before do
29
+ FactoryGirl.stubs(factory_by_name: factory)
30
+ factory.stubs(:compile)
31
+ factory.stubs(:run)
32
+ end
33
+
34
+ it "runs the factory with the correct overrides" do
35
+ association_named(:author, factory_girl_strategy_class, great: "value")
36
+ factory.should have_received(:run).with(factory_girl_strategy_class, great: "value")
37
+ end
38
+
39
+ it "finds the factory with the correct factory name" do
40
+ association_named(:author, factory_girl_strategy_class, great: "value")
41
+ FactoryGirl.should have_received(:factory_by_name).with(:author)
42
+ end
43
+ end
44
+
45
+ shared_examples_for "strategy with strategy: :build" do |factory_girl_strategy_class|
46
+ let(:factory) { stub("associate_factory") }
47
+
48
+ def association_named(name, overrides)
49
+ strategy = FactoryGirl::StrategyCalculator.new(overrides[:strategy]).strategy
50
+ runner = FactoryGirl::FactoryRunner.new(name, strategy, [overrides.except(:strategy)])
51
+ subject.association(runner)
52
+ end
53
+
54
+ before do
55
+ FactoryGirl.stubs(factory_by_name: factory)
56
+ factory.stubs(:compile)
57
+ factory.stubs(:run)
58
+ end
59
+
60
+ it "runs the factory with the correct overrides" do
61
+ association_named(:author, strategy: :build, great: "value")
62
+ factory.should have_received(:run).with(factory_girl_strategy_class, { great: "value" })
63
+ end
64
+
65
+ it "finds the factory with the correct factory name" do
66
+ association_named(:author, strategy: :build, great: "value")
67
+ FactoryGirl.should have_received(:factory_by_name).with(:author)
68
+ end
69
+ end
70
+
71
+ shared_examples_for "strategy with callbacks" do |*callback_names|
72
+ let(:callback_observer) do
73
+ define_class("CallbackObserver") do
74
+ attr_reader :callbacks_called
75
+
76
+ def initialize
77
+ @callbacks_called = []
78
+ end
79
+
80
+ def update(callback_name, assigner)
81
+ @callbacks_called << [callback_name, assigner]
82
+ end
83
+ end.new
84
+ end
85
+
86
+ let(:result_instance) do
87
+ define_class("ResultInstance") do
88
+ attr_accessor :id
89
+ end.new
90
+ end
91
+
92
+ let(:assigner) { stub("attribute assigner", object: result_instance) }
93
+
94
+ before { subject.add_observer(callback_observer) }
95
+
96
+ it "runs the callbacks #{callback_names} with the assigner's object" do
97
+ subject.result(assigner, lambda {|instance| instance })
98
+ callback_observer.callbacks_called.should == callback_names.map {|name| [name, assigner.object] }
99
+ end
100
+
101
+ it "returns the object from the assigner" do
102
+ subject.result(assigner, lambda {|instance| instance }).should == assigner.object
103
+ end
104
+ end
@@ -0,0 +1,62 @@
1
+ # -*- encoding: utf-8 -*-
2
+
3
+ Gem::Specification.new do |s|
4
+ s.name = "factory_girl"
5
+ s.version = "3.0.0"
6
+
7
+ s.required_rubygems_version = Gem::Requirement.new(">= 0") if s.respond_to? :required_rubygems_version=
8
+ s.authors = ["Josh Clayton", "Joe Ferris"]
9
+ s.date = "2012-03-23"
10
+ s.description = "factory_girl provides a framework and DSL for defining and\n using factories - less error-prone, more explicit, and\n all-around easier to work with than fixtures."
11
+ s.email = ["jclayton@thoughtbot.com", "jferris@thoughtbot.com"]
12
+ s.homepage = "https://github.com/thoughtbot/factory_girl"
13
+ s.require_paths = ["lib"]
14
+ s.required_ruby_version = Gem::Requirement.new(">= 1.9.2")
15
+ s.rubygems_version = "1.8.15"
16
+ s.summary = "factory_girl provides a framework and DSL for defining and using model instance factories."
17
+
18
+ if s.respond_to? :specification_version then
19
+ s.specification_version = 3
20
+
21
+ if Gem::Version.new(Gem::VERSION) >= Gem::Version.new('1.2.0') then
22
+ s.add_runtime_dependency(%q<activesupport>, [">= 3.0.0"])
23
+ s.add_development_dependency(%q<rspec>, ["~> 2.0"])
24
+ s.add_development_dependency(%q<cucumber>, ["~> 1.0.0"])
25
+ s.add_development_dependency(%q<timecop>, [">= 0"])
26
+ s.add_development_dependency(%q<simplecov>, [">= 0"])
27
+ s.add_development_dependency(%q<aruba>, [">= 0"])
28
+ s.add_development_dependency(%q<mocha>, [">= 0"])
29
+ s.add_development_dependency(%q<bourne>, [">= 0"])
30
+ s.add_development_dependency(%q<appraisal>, ["~> 0.3.8"])
31
+ s.add_development_dependency(%q<sqlite3-ruby>, [">= 0"])
32
+ s.add_development_dependency(%q<yard>, [">= 0"])
33
+ s.add_development_dependency(%q<bluecloth>, [">= 0"])
34
+ else
35
+ s.add_dependency(%q<activesupport>, [">= 3.0.0"])
36
+ s.add_dependency(%q<rspec>, ["~> 2.0"])
37
+ s.add_dependency(%q<cucumber>, ["~> 1.0.0"])
38
+ s.add_dependency(%q<timecop>, [">= 0"])
39
+ s.add_dependency(%q<simplecov>, [">= 0"])
40
+ s.add_dependency(%q<aruba>, [">= 0"])
41
+ s.add_dependency(%q<mocha>, [">= 0"])
42
+ s.add_dependency(%q<bourne>, [">= 0"])
43
+ s.add_dependency(%q<appraisal>, ["~> 0.3.8"])
44
+ s.add_dependency(%q<sqlite3-ruby>, [">= 0"])
45
+ s.add_dependency(%q<yard>, [">= 0"])
46
+ s.add_dependency(%q<bluecloth>, [">= 0"])
47
+ end
48
+ else
49
+ s.add_dependency(%q<activesupport>, [">= 3.0.0"])
50
+ s.add_dependency(%q<rspec>, ["~> 2.0"])
51
+ s.add_dependency(%q<cucumber>, ["~> 1.0.0"])
52
+ s.add_dependency(%q<timecop>, [">= 0"])
53
+ s.add_dependency(%q<simplecov>, [">= 0"])
54
+ s.add_dependency(%q<aruba>, [">= 0"])
55
+ s.add_dependency(%q<mocha>, [">= 0"])
56
+ s.add_dependency(%q<bourne>, [">= 0"])
57
+ s.add_dependency(%q<appraisal>, ["~> 0.3.8"])
58
+ s.add_dependency(%q<sqlite3-ruby>, [">= 0"])
59
+ s.add_dependency(%q<yard>, [">= 0"])
60
+ s.add_dependency(%q<bluecloth>, [">= 0"])
61
+ end
62
+ end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: challah
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.5.2
4
+ version: 0.5.3
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors:
@@ -9,11 +9,11 @@ authors:
9
9
  autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
- date: 2012-03-22 00:00:00.000000000Z
12
+ date: 2012-03-26 00:00:00.000000000Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: highline
16
- requirement: &70311991424900 !ruby/object:Gem::Requirement
16
+ requirement: &70216822663460 !ruby/object:Gem::Requirement
17
17
  none: false
18
18
  requirements:
19
19
  - - ! '>='
@@ -21,10 +21,10 @@ dependencies:
21
21
  version: '0'
22
22
  type: :runtime
23
23
  prerelease: false
24
- version_requirements: *70311991424900
24
+ version_requirements: *70216822663460
25
25
  - !ruby/object:Gem::Dependency
26
26
  name: rails
27
- requirement: &70312004401620 !ruby/object:Gem::Requirement
27
+ requirement: &70216831469680 !ruby/object:Gem::Requirement
28
28
  none: false
29
29
  requirements:
30
30
  - - ! '>='
@@ -32,10 +32,10 @@ dependencies:
32
32
  version: '3.1'
33
33
  type: :runtime
34
34
  prerelease: false
35
- version_requirements: *70312004401620
35
+ version_requirements: *70216831469680
36
36
  - !ruby/object:Gem::Dependency
37
37
  name: rake
38
- requirement: &70312004414900 !ruby/object:Gem::Requirement
38
+ requirement: &70216831483320 !ruby/object:Gem::Requirement
39
39
  none: false
40
40
  requirements:
41
41
  - - ! '>='
@@ -43,10 +43,10 @@ dependencies:
43
43
  version: 0.9.2
44
44
  type: :runtime
45
45
  prerelease: false
46
- version_requirements: *70312004414900
46
+ version_requirements: *70216831483320
47
47
  - !ruby/object:Gem::Dependency
48
48
  name: bcrypt-ruby
49
- requirement: &70312004432600 !ruby/object:Gem::Requirement
49
+ requirement: &70216831500660 !ruby/object:Gem::Requirement
50
50
  none: false
51
51
  requirements:
52
52
  - - ! '>='
@@ -54,7 +54,7 @@ dependencies:
54
54
  version: '0'
55
55
  type: :runtime
56
56
  prerelease: false
57
- version_requirements: *70312004432600
57
+ version_requirements: *70216831500660
58
58
  description: A simple ruby gem for authentication, users, roles and permissions.
59
59
  email:
60
60
  - john@johntornow.com
@@ -149,6 +149,7 @@ files:
149
149
  - vendor/bundle/cache/erubis-2.7.0.gem
150
150
  - vendor/bundle/cache/factory_girl-2.5.1.gem
151
151
  - vendor/bundle/cache/factory_girl-2.6.1.gem
152
+ - vendor/bundle/cache/factory_girl-3.0.0.gem
152
153
  - vendor/bundle/cache/highline-1.6.11.gem
153
154
  - vendor/bundle/cache/hike-1.2.1.gem
154
155
  - vendor/bundle/cache/i18n-0.6.0.gem
@@ -2318,6 +2319,139 @@ files:
2318
2319
  - vendor/bundle/gems/factory_girl-2.6.1/spec/support/matchers/delegate.rb
2319
2320
  - vendor/bundle/gems/factory_girl-2.6.1/spec/support/matchers/trait.rb
2320
2321
  - vendor/bundle/gems/factory_girl-2.6.1/spec/support/shared_examples/strategy.rb
2322
+ - vendor/bundle/gems/factory_girl-3.0.0/Appraisals
2323
+ - vendor/bundle/gems/factory_girl-3.0.0/Changelog
2324
+ - vendor/bundle/gems/factory_girl-3.0.0/CONTRIBUTION_GUIDELINES.md
2325
+ - vendor/bundle/gems/factory_girl-3.0.0/cucumber.yml
2326
+ - vendor/bundle/gems/factory_girl-3.0.0/factory_girl.gemspec
2327
+ - vendor/bundle/gems/factory_girl-3.0.0/features/factory_girl_steps.feature
2328
+ - vendor/bundle/gems/factory_girl-3.0.0/features/find_definitions.feature
2329
+ - vendor/bundle/gems/factory_girl-3.0.0/features/step_definitions/database_steps.rb
2330
+ - vendor/bundle/gems/factory_girl-3.0.0/features/step_definitions/factory_girl_steps.rb
2331
+ - vendor/bundle/gems/factory_girl-3.0.0/features/support/env.rb
2332
+ - vendor/bundle/gems/factory_girl-3.0.0/features/support/factories.rb
2333
+ - vendor/bundle/gems/factory_girl-3.0.0/Gemfile
2334
+ - vendor/bundle/gems/factory_girl-3.0.0/Gemfile.lock
2335
+ - vendor/bundle/gems/factory_girl-3.0.0/gemfiles/2.3.gemfile
2336
+ - vendor/bundle/gems/factory_girl-3.0.0/gemfiles/3.0.gemfile
2337
+ - vendor/bundle/gems/factory_girl-3.0.0/gemfiles/3.0.gemfile.lock
2338
+ - vendor/bundle/gems/factory_girl-3.0.0/gemfiles/3.1.gemfile
2339
+ - vendor/bundle/gems/factory_girl-3.0.0/gemfiles/3.1.gemfile.lock
2340
+ - vendor/bundle/gems/factory_girl-3.0.0/gemfiles/3.2.gemfile
2341
+ - vendor/bundle/gems/factory_girl-3.0.0/gemfiles/3.2.gemfile.lock
2342
+ - vendor/bundle/gems/factory_girl-3.0.0/GETTING_STARTED.md
2343
+ - vendor/bundle/gems/factory_girl-3.0.0/lib/factory_girl/aliases.rb
2344
+ - vendor/bundle/gems/factory_girl-3.0.0/lib/factory_girl/attribute/association.rb
2345
+ - vendor/bundle/gems/factory_girl-3.0.0/lib/factory_girl/attribute/dynamic.rb
2346
+ - vendor/bundle/gems/factory_girl-3.0.0/lib/factory_girl/attribute/sequence.rb
2347
+ - vendor/bundle/gems/factory_girl-3.0.0/lib/factory_girl/attribute/static.rb
2348
+ - vendor/bundle/gems/factory_girl-3.0.0/lib/factory_girl/attribute.rb
2349
+ - vendor/bundle/gems/factory_girl-3.0.0/lib/factory_girl/attribute_assigner.rb
2350
+ - vendor/bundle/gems/factory_girl-3.0.0/lib/factory_girl/attribute_list.rb
2351
+ - vendor/bundle/gems/factory_girl-3.0.0/lib/factory_girl/callback.rb
2352
+ - vendor/bundle/gems/factory_girl-3.0.0/lib/factory_girl/declaration/association.rb
2353
+ - vendor/bundle/gems/factory_girl-3.0.0/lib/factory_girl/declaration/dynamic.rb
2354
+ - vendor/bundle/gems/factory_girl-3.0.0/lib/factory_girl/declaration/implicit.rb
2355
+ - vendor/bundle/gems/factory_girl-3.0.0/lib/factory_girl/declaration/static.rb
2356
+ - vendor/bundle/gems/factory_girl-3.0.0/lib/factory_girl/declaration.rb
2357
+ - vendor/bundle/gems/factory_girl-3.0.0/lib/factory_girl/declaration_list.rb
2358
+ - vendor/bundle/gems/factory_girl-3.0.0/lib/factory_girl/definition.rb
2359
+ - vendor/bundle/gems/factory_girl-3.0.0/lib/factory_girl/definition_proxy.rb
2360
+ - vendor/bundle/gems/factory_girl-3.0.0/lib/factory_girl/errors.rb
2361
+ - vendor/bundle/gems/factory_girl-3.0.0/lib/factory_girl/evaluator.rb
2362
+ - vendor/bundle/gems/factory_girl-3.0.0/lib/factory_girl/evaluator_class_definer.rb
2363
+ - vendor/bundle/gems/factory_girl-3.0.0/lib/factory_girl/factory.rb
2364
+ - vendor/bundle/gems/factory_girl-3.0.0/lib/factory_girl/factory_runner.rb
2365
+ - vendor/bundle/gems/factory_girl-3.0.0/lib/factory_girl/find_definitions.rb
2366
+ - vendor/bundle/gems/factory_girl-3.0.0/lib/factory_girl/null_factory.rb
2367
+ - vendor/bundle/gems/factory_girl-3.0.0/lib/factory_girl/null_object.rb
2368
+ - vendor/bundle/gems/factory_girl-3.0.0/lib/factory_girl/registry.rb
2369
+ - vendor/bundle/gems/factory_girl-3.0.0/lib/factory_girl/reload.rb
2370
+ - vendor/bundle/gems/factory_girl-3.0.0/lib/factory_girl/sequence.rb
2371
+ - vendor/bundle/gems/factory_girl-3.0.0/lib/factory_girl/step_definitions.rb
2372
+ - vendor/bundle/gems/factory_girl-3.0.0/lib/factory_girl/strategy/attributes_for.rb
2373
+ - vendor/bundle/gems/factory_girl-3.0.0/lib/factory_girl/strategy/build.rb
2374
+ - vendor/bundle/gems/factory_girl-3.0.0/lib/factory_girl/strategy/create.rb
2375
+ - vendor/bundle/gems/factory_girl-3.0.0/lib/factory_girl/strategy/stub.rb
2376
+ - vendor/bundle/gems/factory_girl-3.0.0/lib/factory_girl/strategy.rb
2377
+ - vendor/bundle/gems/factory_girl-3.0.0/lib/factory_girl/strategy_calculator.rb
2378
+ - vendor/bundle/gems/factory_girl-3.0.0/lib/factory_girl/syntax/blueprint.rb
2379
+ - vendor/bundle/gems/factory_girl-3.0.0/lib/factory_girl/syntax/default.rb
2380
+ - vendor/bundle/gems/factory_girl-3.0.0/lib/factory_girl/syntax/generate.rb
2381
+ - vendor/bundle/gems/factory_girl-3.0.0/lib/factory_girl/syntax/make.rb
2382
+ - vendor/bundle/gems/factory_girl-3.0.0/lib/factory_girl/syntax/methods.rb
2383
+ - vendor/bundle/gems/factory_girl-3.0.0/lib/factory_girl/syntax/sham.rb
2384
+ - vendor/bundle/gems/factory_girl-3.0.0/lib/factory_girl/syntax/vintage.rb
2385
+ - vendor/bundle/gems/factory_girl-3.0.0/lib/factory_girl/syntax.rb
2386
+ - vendor/bundle/gems/factory_girl-3.0.0/lib/factory_girl/trait.rb
2387
+ - vendor/bundle/gems/factory_girl-3.0.0/lib/factory_girl/version.rb
2388
+ - vendor/bundle/gems/factory_girl-3.0.0/lib/factory_girl.rb
2389
+ - vendor/bundle/gems/factory_girl-3.0.0/LICENSE
2390
+ - vendor/bundle/gems/factory_girl-3.0.0/Rakefile
2391
+ - vendor/bundle/gems/factory_girl-3.0.0/README.md
2392
+ - vendor/bundle/gems/factory_girl-3.0.0/spec/acceptance/aliases_spec.rb
2393
+ - vendor/bundle/gems/factory_girl-3.0.0/spec/acceptance/attribute_aliases_spec.rb
2394
+ - vendor/bundle/gems/factory_girl-3.0.0/spec/acceptance/attribute_existing_on_object_spec.rb
2395
+ - vendor/bundle/gems/factory_girl-3.0.0/spec/acceptance/attributes_for_spec.rb
2396
+ - vendor/bundle/gems/factory_girl-3.0.0/spec/acceptance/attributes_from_instance_spec.rb
2397
+ - vendor/bundle/gems/factory_girl-3.0.0/spec/acceptance/attributes_ordered_spec.rb
2398
+ - vendor/bundle/gems/factory_girl-3.0.0/spec/acceptance/build_list_spec.rb
2399
+ - vendor/bundle/gems/factory_girl-3.0.0/spec/acceptance/build_spec.rb
2400
+ - vendor/bundle/gems/factory_girl-3.0.0/spec/acceptance/build_stubbed_spec.rb
2401
+ - vendor/bundle/gems/factory_girl-3.0.0/spec/acceptance/callbacks_spec.rb
2402
+ - vendor/bundle/gems/factory_girl-3.0.0/spec/acceptance/create_list_spec.rb
2403
+ - vendor/bundle/gems/factory_girl-3.0.0/spec/acceptance/create_spec.rb
2404
+ - vendor/bundle/gems/factory_girl-3.0.0/spec/acceptance/define_child_before_parent_spec.rb
2405
+ - vendor/bundle/gems/factory_girl-3.0.0/spec/acceptance/definition_spec.rb
2406
+ - vendor/bundle/gems/factory_girl-3.0.0/spec/acceptance/definition_without_block_spec.rb
2407
+ - vendor/bundle/gems/factory_girl-3.0.0/spec/acceptance/initialize_with_spec.rb
2408
+ - vendor/bundle/gems/factory_girl-3.0.0/spec/acceptance/modify_factories_spec.rb
2409
+ - vendor/bundle/gems/factory_girl-3.0.0/spec/acceptance/modify_inherited_spec.rb
2410
+ - vendor/bundle/gems/factory_girl-3.0.0/spec/acceptance/nested_attributes_spec.rb
2411
+ - vendor/bundle/gems/factory_girl-3.0.0/spec/acceptance/overrides_spec.rb
2412
+ - vendor/bundle/gems/factory_girl-3.0.0/spec/acceptance/parent_spec.rb
2413
+ - vendor/bundle/gems/factory_girl-3.0.0/spec/acceptance/sequence_spec.rb
2414
+ - vendor/bundle/gems/factory_girl-3.0.0/spec/acceptance/stub_spec.rb
2415
+ - vendor/bundle/gems/factory_girl-3.0.0/spec/acceptance/syntax/blueprint_spec.rb
2416
+ - vendor/bundle/gems/factory_girl-3.0.0/spec/acceptance/syntax/generate_spec.rb
2417
+ - vendor/bundle/gems/factory_girl-3.0.0/spec/acceptance/syntax/make_spec.rb
2418
+ - vendor/bundle/gems/factory_girl-3.0.0/spec/acceptance/syntax/sham_spec.rb
2419
+ - vendor/bundle/gems/factory_girl-3.0.0/spec/acceptance/syntax/vintage_spec.rb
2420
+ - vendor/bundle/gems/factory_girl-3.0.0/spec/acceptance/traits_spec.rb
2421
+ - vendor/bundle/gems/factory_girl-3.0.0/spec/acceptance/transient_attributes_spec.rb
2422
+ - vendor/bundle/gems/factory_girl-3.0.0/spec/factory_girl/aliases_spec.rb
2423
+ - vendor/bundle/gems/factory_girl-3.0.0/spec/factory_girl/attribute/association_spec.rb
2424
+ - vendor/bundle/gems/factory_girl-3.0.0/spec/factory_girl/attribute/dynamic_spec.rb
2425
+ - vendor/bundle/gems/factory_girl-3.0.0/spec/factory_girl/attribute/sequence_spec.rb
2426
+ - vendor/bundle/gems/factory_girl-3.0.0/spec/factory_girl/attribute/static_spec.rb
2427
+ - vendor/bundle/gems/factory_girl-3.0.0/spec/factory_girl/attribute_list_spec.rb
2428
+ - vendor/bundle/gems/factory_girl-3.0.0/spec/factory_girl/attribute_spec.rb
2429
+ - vendor/bundle/gems/factory_girl-3.0.0/spec/factory_girl/callback_spec.rb
2430
+ - vendor/bundle/gems/factory_girl-3.0.0/spec/factory_girl/declaration/implicit_spec.rb
2431
+ - vendor/bundle/gems/factory_girl-3.0.0/spec/factory_girl/declaration_list_spec.rb
2432
+ - vendor/bundle/gems/factory_girl-3.0.0/spec/factory_girl/definition_proxy_spec.rb
2433
+ - vendor/bundle/gems/factory_girl-3.0.0/spec/factory_girl/definition_spec.rb
2434
+ - vendor/bundle/gems/factory_girl-3.0.0/spec/factory_girl/evaluator_class_definer_spec.rb
2435
+ - vendor/bundle/gems/factory_girl-3.0.0/spec/factory_girl/factory_spec.rb
2436
+ - vendor/bundle/gems/factory_girl-3.0.0/spec/factory_girl/find_definitions_spec.rb
2437
+ - vendor/bundle/gems/factory_girl-3.0.0/spec/factory_girl/null_factory_spec.rb
2438
+ - vendor/bundle/gems/factory_girl-3.0.0/spec/factory_girl/null_object_spec.rb
2439
+ - vendor/bundle/gems/factory_girl-3.0.0/spec/factory_girl/registry_spec.rb
2440
+ - vendor/bundle/gems/factory_girl-3.0.0/spec/factory_girl/sequence_spec.rb
2441
+ - vendor/bundle/gems/factory_girl-3.0.0/spec/factory_girl/strategy/attributes_for_spec.rb
2442
+ - vendor/bundle/gems/factory_girl-3.0.0/spec/factory_girl/strategy/build_spec.rb
2443
+ - vendor/bundle/gems/factory_girl-3.0.0/spec/factory_girl/strategy/create_spec.rb
2444
+ - vendor/bundle/gems/factory_girl-3.0.0/spec/factory_girl/strategy/stub_spec.rb
2445
+ - vendor/bundle/gems/factory_girl-3.0.0/spec/factory_girl/strategy_calculator_spec.rb
2446
+ - vendor/bundle/gems/factory_girl-3.0.0/spec/factory_girl/strategy_spec.rb
2447
+ - vendor/bundle/gems/factory_girl-3.0.0/spec/factory_girl_spec.rb
2448
+ - vendor/bundle/gems/factory_girl-3.0.0/spec/spec_helper.rb
2449
+ - vendor/bundle/gems/factory_girl-3.0.0/spec/support/macros/define_constant.rb
2450
+ - vendor/bundle/gems/factory_girl-3.0.0/spec/support/matchers/callback.rb
2451
+ - vendor/bundle/gems/factory_girl-3.0.0/spec/support/matchers/declaration.rb
2452
+ - vendor/bundle/gems/factory_girl-3.0.0/spec/support/matchers/delegate.rb
2453
+ - vendor/bundle/gems/factory_girl-3.0.0/spec/support/matchers/trait.rb
2454
+ - vendor/bundle/gems/factory_girl-3.0.0/spec/support/shared_examples/strategy.rb
2321
2455
  - vendor/bundle/gems/highline-1.6.11/AUTHORS
2322
2456
  - vendor/bundle/gems/highline-1.6.11/CHANGELOG
2323
2457
  - vendor/bundle/gems/highline-1.6.11/COPYING
@@ -7706,6 +7840,7 @@ files:
7706
7840
  - vendor/bundle/specifications/erubis-2.7.0.gemspec
7707
7841
  - vendor/bundle/specifications/factory_girl-2.5.1.gemspec
7708
7842
  - vendor/bundle/specifications/factory_girl-2.6.1.gemspec
7843
+ - vendor/bundle/specifications/factory_girl-3.0.0.gemspec
7709
7844
  - vendor/bundle/specifications/highline-1.6.11.gemspec
7710
7845
  - vendor/bundle/specifications/hike-1.2.1.gemspec
7711
7846
  - vendor/bundle/specifications/i18n-0.6.0.gemspec
@@ -7760,13 +7895,13 @@ required_ruby_version: !ruby/object:Gem::Requirement
7760
7895
  requirements:
7761
7896
  - - ! '>='
7762
7897
  - !ruby/object:Gem::Version
7763
- version: 1.8.7
7898
+ version: 1.9.2
7764
7899
  required_rubygems_version: !ruby/object:Gem::Requirement
7765
7900
  none: false
7766
7901
  requirements:
7767
7902
  - - ! '>='
7768
7903
  - !ruby/object:Gem::Version
7769
- version: 1.3.6
7904
+ version: '0'
7770
7905
  requirements: []
7771
7906
  rubyforge_project:
7772
7907
  rubygems_version: 1.8.15