rspec-rails-w-factory_girl 1.3.2 → 1.3.2.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -33,7 +33,7 @@ HELPFUL_INSTRUCTIONS
33
33
  puts
34
34
  require File.expand_path('../../../lib/spec/rails/version.rb', __FILE__)
35
35
  rspec_config = <<-EOF
36
- config.gem 'rspec-rails', :version => '>= #{Spec::Rails::VERSION::STRING}', :lib => false unless File.directory?(File.join(Rails.root, 'vendor/plugins/rspec-rails'))
36
+ config.gem 'rspec-rails-w-factory_girl', :version => '>= #{Spec::Rails::VERSION::STRING}', :lib => false unless File.directory?(File.join(Rails.root, 'vendor/plugins/rspec-rails-w-factory_girl'))
37
37
  config.gem 'factory_girl', lib => false unless File.directory?(File.join(Rails.root, 'vendor/plugins/factory_girl'))
38
38
  EOF
39
39
  File.open(test_env, "wb") do |f|
@@ -1,10 +1,7 @@
1
1
  require 'spec_helper'
2
-
3
2
  describe <%= class_name %> do
4
3
  before(:each) do
5
- @valid_attributes = {
6
- <%= attributes.map{|a| ":#{a.name_or_reference} => #{a.default_value}" }.join(",\n ") %>
7
- }
4
+ @valid_attributes = Factory.attributes_for(:<%= class_name.underscore%>)
8
5
  end
9
6
 
10
7
  it "should create a new instance given valid attributes" do
@@ -5,11 +5,11 @@ module Spec # :nodoc:
5
5
  MAJOR = 1
6
6
  MINOR = 3
7
7
  TINY = 2
8
- PRE = nil
8
+ PRE = 1
9
9
 
10
10
  STRING = [MAJOR, MINOR, TINY, PRE].compact.join('.')
11
11
 
12
- SUMMARY = "rspec-rails #{STRING}"
12
+ SUMMARY = "rspec-rails-w-factory_girl #{STRING}"
13
13
  end
14
14
  end
15
15
  end
metadata CHANGED
@@ -6,7 +6,8 @@ version: !ruby/object:Gem::Version
6
6
  - 1
7
7
  - 3
8
8
  - 2
9
- version: 1.3.2
9
+ - 1
10
+ version: 1.3.2.1
10
11
  platform: ruby
11
12
  authors:
12
13
  - RSpec Development Team
@@ -14,7 +15,7 @@ autorequire:
14
15
  bindir: bin
15
16
  cert_chain: []
16
17
 
17
- date: 2010-02-26 00:00:00 -08:00
18
+ date: 2010-03-11 00:00:00 -08:00
18
19
  default_executable:
19
20
  dependencies:
20
21
  - !ruby/object:Gem::Dependency
@@ -259,7 +260,7 @@ licenses: []
259
260
  post_install_message: |
260
261
  **************************************************
261
262
 
262
- Thank you for installing rspec-rails-w-factory_girl-1.3.2
263
+ Thank you for installing rspec-rails-w-factory_girl-1.3.2.1
263
264
 
264
265
  If you are upgrading, do this in each of your rails apps
265
266
  that you want to upgrade:
@@ -296,6 +297,6 @@ rubyforge_project: rspec
296
297
  rubygems_version: 1.3.6
297
298
  signing_key:
298
299
  specification_version: 3
299
- summary: rspec-rails 1.3.2
300
+ summary: rspec-rails-w-factory_girl 1.3.2.1
300
301
  test_files: []
301
302