rspec_generator 0.5.6 → 0.5.7

Sign up to get free protection for your applications and to get access to all the features.
@@ -5,14 +5,14 @@ context "The <%= class_name %>Controller" do
5
5
  controller_name :<%= class_name.underscore %>
6
6
 
7
7
  specify "should be a <%= class_name %>Controller" do
8
- controller.should.be.an.instance.of <%= class_name %>Controller
8
+ controller.should_be_an_instance_of <%= class_name %>Controller
9
9
  end
10
10
 
11
11
  <% for action in actions -%>
12
12
 
13
13
  specify "should accept GET to <%= action %>"
14
14
  get '<%= action %>'
15
- response.should.be.success
15
+ response.should_be_success
16
16
  end
17
17
  <% end -%>
18
18
 
@@ -4,22 +4,10 @@ context "<%= class_name %> class with fixtures loaded" do
4
4
  fixtures :<%= table_name %>
5
5
 
6
6
  specify "should count two <%= class_name.pluralize %>" do
7
- <%= class_name %>.count.should.be 2
7
+ <%= class_name %>.count.should_be 2
8
8
  end
9
9
 
10
10
  specify "should have more specifications" do
11
- violated "nothing specified"
12
- end
13
- end
14
-
15
- context "<%= class_name %> fixture :first" do
16
- fixtures :<%= table_name %>
17
-
18
- setup do
19
- @first = <%= class_name.pluralize.underscore %>(:first)
20
- end
21
-
22
- specify "should have more specifications" do
23
- violated "nothing specified"
11
+ violated "not enough specs"
24
12
  end
25
13
  end
metadata CHANGED
@@ -3,8 +3,8 @@ rubygems_version: 0.8.11
3
3
  specification_version: 1
4
4
  name: rspec_generator
5
5
  version: !ruby/object:Gem::Version
6
- version: 0.5.6
7
- date: 2006-06-06 00:00:00 -05:00
6
+ version: 0.5.7
7
+ date: 2006-06-07 00:00:00 -05:00
8
8
  summary: RSpec plugin and generator for Ruby on Rails
9
9
  require_paths:
10
10
  - lib
@@ -67,5 +67,5 @@ dependencies:
67
67
  requirements:
68
68
  - - "="
69
69
  - !ruby/object:Gem::Version
70
- version: 0.5.6
70
+ version: 0.5.7
71
71
  version: