crudspec 0.0.1 → 0.1.0

Sign up to get free protection for your applications and to get access to all the features.
data/README.markdown CHANGED
@@ -87,8 +87,6 @@ A controller that would work out of the box would look something like:
87
87
 
88
88
  # TODO
89
89
 
90
- * Fix the tests! In theory they're properly written but they don't pass.
91
- I give up.
92
90
  * Option to create a test for Ruby::Test
93
91
  * Option to create a cucumber feature
94
92
  * Option to generate Specs that work out of the box with gems like [inherited_resources](https://github.com/josevalim/inherited_resources), [resource_controller](https://github.com/jamesgolick/resource_controller)
@@ -1,3 +1,3 @@
1
1
  module Crudspec
2
- VERSION = "0.0.1"
2
+ VERSION = "0.1.0"
3
3
  end
@@ -1,15 +1,16 @@
1
1
  require 'test_helper'
2
+ require 'generators/spec_generator'
2
3
 
3
4
  class SpecGeneratorTest < Rails::Generators::TestCase
4
- tests Crudspec::Generators::SpecGenerator
5
+ tests ::Crudspec::Generators::SpecGenerator
5
6
  destination File.expand_path("../tmp", File.dirname(__FILE__))
6
7
  setup :prepare_destination
7
8
 
8
9
  test "create the controller files" do
9
- Crudspec::Generators::SpecGenerator.start('admin/coupons_controller')
10
- Crudspec::Generators::SpecGenerator.start('admin/discounts')
11
- Crudspec::Generators::SpecGenerator.start('Admin::Products')
12
- Crudspec::Generators::SpecGenerator.start('Admin::ClientsController')
10
+ run_generator 'admin/coupons_controller'
11
+ run_generator 'admin/discounts'
12
+ run_generator 'Admin::Products'
13
+ run_generator 'Admin::ClientsController'
13
14
 
14
15
  assert_file 'spec/controllers/admin/coupons_controller_spec.rb'
15
16
  assert_file 'spec/controllers/admin/discounts_controller_spec.rb'
metadata CHANGED
@@ -1,13 +1,13 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: crudspec
3
3
  version: !ruby/object:Gem::Version
4
- hash: 29
4
+ hash: 27
5
5
  prerelease: false
6
6
  segments:
7
7
  - 0
8
- - 0
9
8
  - 1
10
- version: 0.0.1
9
+ - 0
10
+ version: 0.1.0
11
11
  platform: ruby
12
12
  authors:
13
13
  - David Padilla