jasmine-fixtures-generator 0.1.0 → 0.1.1

Sign up to get free protection for your applications and to get access to all the features.
data/.travis.yml CHANGED
@@ -2,5 +2,6 @@ rvm:
2
2
  - 1.8.7
3
3
  - 1.9.2
4
4
  - ree
5
- - rbx
6
5
  - jruby
6
+ - rbx
7
+ - rbx-2.0
data/README.md CHANGED
@@ -10,9 +10,12 @@ Install the gem:
10
10
 
11
11
  Add it to your Gemfile:
12
12
 
13
- gem "jasmine-fixtures-generator", :group => :development
13
+ gem "jasmine-fixtures-generator", :group => :development, :require => false
14
14
 
15
+ Add the require in spec_helper.rb
15
16
 
17
+ require 'jasmine_fixtures'
18
+ '
16
19
  ## Usage
17
20
 
18
21
  Run the generator:
@@ -2,7 +2,7 @@ require "rails/generators/base"
2
2
 
3
3
  class JasmineFixturesGenerator < Rails::Generators::Base
4
4
 
5
- desc "This generator install jasmine-jquery and add fixture_helper_methods.rb"
5
+ desc "This generator install jasmine-jquery and add rspec controllers examples"
6
6
  source_root File.expand_path('../templates', __FILE__)
7
7
 
8
8
  def copy_jasmine_jquery
@@ -10,11 +10,6 @@ class JasmineFixturesGenerator < Rails::Generators::Base
10
10
  copy_file "../../../vendor/jasmine-jquery.js", "spec/javascripts/helpers/jasmine-jquery.js"
11
11
  end
12
12
 
13
- def copy_fixture_helper_methods
14
- say_status("copying", "fixture_helper_methods.rb", :green)
15
- copy_file "spec/support/fixture_helper_methods.rb", "spec/support/fixture_helper_methods.rb"
16
- end
17
-
18
13
  def copy_jasmine_fixture_creators_spec
19
14
  say_status("copying", "jasmine_fixture_creators_spec.rb", :green)
20
15
  copy_file "spec/controllers/jasmine_fixture_creators_spec.rb", "spec/controllers/jasmine_fixture_creators_spec.rb"
@@ -4,7 +4,7 @@ require 'spec_helper'
4
4
 
5
5
  You can use this file to define new Jasmine Fixtures
6
6
  or
7
- You can add jasmine fixtures spec on your controllers spec
7
+ You can add jasmine fixtures spec on your controllers spec or functionals tests
8
8
 
9
9
  We have provided an example for you to crib off.
10
10
 
@@ -1,7 +1,7 @@
1
1
  module Jasmine
2
2
  module Fixtures
3
3
  module Generator
4
- VERSION = "0.1.0"
4
+ VERSION = "0.1.1"
5
5
  end
6
6
  end
7
7
  end
@@ -45,6 +45,6 @@ module FixtureHelperMethods
45
45
  end
46
46
  end
47
47
 
48
- # Add fixture-generation methods to ControllerExampleGroup. We load
49
- # this file within our spec_helper.rb
48
+ # Add fixture-generation methods to ControllerExampleGroup
50
49
  RSpec::Rails::ControllerExampleGroup.extend(FixtureHelperMethods) if defined?(RSpec)
50
+ ActionController::TestCase.extend(FixtureHelperMethods) if defined?(ActionController::TestCase)
@@ -1,5 +1,5 @@
1
1
  require 'test_helper'
2
- require 'generators/templates/spec/support/fixture_helper_methods'
2
+ require 'jasmine_fixtures'
3
3
 
4
4
  class FixtureHelperMethodsTest < ActiveSupport::TestCase
5
5
  include FixtureHelperMethods
@@ -8,7 +8,6 @@ class JasmineFixturesGeneratorTest < Rails::Generators::TestCase
8
8
 
9
9
  test "Assert all files are properly created" do
10
10
  run_generator
11
- assert_file "spec/support/fixture_helper_methods.rb"
12
11
  assert_file "spec/javascripts/helpers/jasmine-jquery.js"
13
12
  assert_file "spec/controllers/jasmine_fixture_creators_spec.rb"
14
13
  assert_file "spec/javascripts/example_users_spec.js"
metadata CHANGED
@@ -1,59 +1,79 @@
1
- --- !ruby/object:Gem::Specification
1
+ --- !ruby/object:Gem::Specification
2
2
  name: jasmine-fixtures-generator
3
- version: !ruby/object:Gem::Version
4
- version: 0.1.0
5
- prerelease:
3
+ version: !ruby/object:Gem::Version
4
+ prerelease: false
5
+ segments:
6
+ - 0
7
+ - 1
8
+ - 1
9
+ version: 0.1.1
6
10
  platform: ruby
7
- authors:
11
+ authors:
8
12
  - Luis Porras
9
13
  - Guillermo Iguaran
10
14
  autorequire:
11
15
  bindir: bin
12
16
  cert_chain: []
13
- date: 2011-07-31 00:00:00.000000000 -05:00
17
+
18
+ date: 2011-08-10 00:00:00 -05:00
14
19
  default_executable:
15
- dependencies:
16
- - !ruby/object:Gem::Dependency
20
+ dependencies:
21
+ - !ruby/object:Gem::Dependency
17
22
  name: jasmine
18
- requirement: &2152624080 !ruby/object:Gem::Requirement
23
+ prerelease: false
24
+ requirement: &id001 !ruby/object:Gem::Requirement
19
25
  none: false
20
- requirements:
21
- - - ! '>='
22
- - !ruby/object:Gem::Version
26
+ requirements:
27
+ - - ">="
28
+ - !ruby/object:Gem::Version
29
+ segments:
30
+ - 1
31
+ - 0
32
+ - 0
23
33
  version: 1.0.0
24
34
  type: :runtime
25
- prerelease: false
26
- version_requirements: *2152624080
27
- - !ruby/object:Gem::Dependency
35
+ version_requirements: *id001
36
+ - !ruby/object:Gem::Dependency
28
37
  name: railties
29
- requirement: &2152623580 !ruby/object:Gem::Requirement
38
+ prerelease: false
39
+ requirement: &id002 !ruby/object:Gem::Requirement
30
40
  none: false
31
- requirements:
32
- - - ! '>='
33
- - !ruby/object:Gem::Version
41
+ requirements:
42
+ - - ">="
43
+ - !ruby/object:Gem::Version
44
+ segments:
45
+ - 3
46
+ - 0
47
+ - 0
34
48
  version: 3.0.0
35
49
  type: :runtime
36
- prerelease: false
37
- version_requirements: *2152623580
38
- - !ruby/object:Gem::Dependency
50
+ version_requirements: *id002
51
+ - !ruby/object:Gem::Dependency
39
52
  name: nokogiri
40
- requirement: &2152623120 !ruby/object:Gem::Requirement
53
+ prerelease: false
54
+ requirement: &id003 !ruby/object:Gem::Requirement
41
55
  none: false
42
- requirements:
43
- - - ! '>='
44
- - !ruby/object:Gem::Version
56
+ requirements:
57
+ - - ">="
58
+ - !ruby/object:Gem::Version
59
+ segments:
60
+ - 1
61
+ - 4
62
+ - 0
45
63
  version: 1.4.0
46
64
  type: :runtime
47
- prerelease: false
48
- version_requirements: *2152623120
65
+ version_requirements: *id003
49
66
  description: Fixtures Generator for Jasmine BDD framework under Rails 3.x
50
- email:
67
+ email:
51
68
  - lporras16@gmail.com
52
69
  - guilleiguaran@gmail.com
53
70
  executables: []
71
+
54
72
  extensions: []
73
+
55
74
  extra_rdoc_files: []
56
- files:
75
+
76
+ files:
57
77
  - .gitignore
58
78
  - .travis.yml
59
79
  - Gemfile
@@ -64,8 +84,8 @@ files:
64
84
  - lib/generators/jasmine_fixtures_generator.rb
65
85
  - lib/generators/templates/spec/controllers/jasmine_fixture_creators_spec.rb
66
86
  - lib/generators/templates/spec/javascripts/example_users_spec.js
67
- - lib/generators/templates/spec/support/fixture_helper_methods.rb
68
87
  - lib/jasmine-fixtures-generator.rb
88
+ - lib/jasmine_fixtures.rb
69
89
  - test/fixture_helper_methods_test.rb
70
90
  - test/jasmine_fixture_generator_test.rb
71
91
  - test/support/rails_stub.rb
@@ -74,29 +94,36 @@ files:
74
94
  has_rdoc: true
75
95
  homepage: https://github.com/lporras/jasmine-fixtures-generator
76
96
  licenses: []
97
+
77
98
  post_install_message:
78
99
  rdoc_options: []
79
- require_paths:
100
+
101
+ require_paths:
80
102
  - lib
81
- required_ruby_version: !ruby/object:Gem::Requirement
103
+ required_ruby_version: !ruby/object:Gem::Requirement
82
104
  none: false
83
- requirements:
84
- - - ! '>='
85
- - !ruby/object:Gem::Version
86
- version: '0'
87
- required_rubygems_version: !ruby/object:Gem::Requirement
105
+ requirements:
106
+ - - ">="
107
+ - !ruby/object:Gem::Version
108
+ segments:
109
+ - 0
110
+ version: "0"
111
+ required_rubygems_version: !ruby/object:Gem::Requirement
88
112
  none: false
89
- requirements:
90
- - - ! '>='
91
- - !ruby/object:Gem::Version
92
- version: '0'
113
+ requirements:
114
+ - - ">="
115
+ - !ruby/object:Gem::Version
116
+ segments:
117
+ - 0
118
+ version: "0"
93
119
  requirements: []
120
+
94
121
  rubyforge_project: jasmine-fixtures-generator
95
- rubygems_version: 1.6.2
122
+ rubygems_version: 1.3.7
96
123
  signing_key:
97
124
  specification_version: 3
98
125
  summary: Fixtures Generator for Jasmine under Rails 3.x
99
- test_files:
126
+ test_files:
100
127
  - test/fixture_helper_methods_test.rb
101
128
  - test/jasmine_fixture_generator_test.rb
102
129
  - test/support/rails_stub.rb