quick_shoulda 0.0.3 → 0.0.4

Sign up to get free protection for your applications and to get access to all the features.
data/README.rdoc CHANGED
@@ -5,6 +5,7 @@ A Rails generator which automatically generates Shoulda test cases ,
5
5
  Just by specifying path to your model file , a bunch of Shoulda test cases will be generated for you in the correspondent spec file
6
6
 
7
7
  == Examples :
8
+ Sample model :
8
9
 
9
10
  app/models/user.rb
10
11
 
@@ -16,9 +17,13 @@ Just by specifying path to your model file , a bunch of Shoulda test cases will
16
17
  has_many :comments, :through => :posts
17
18
  end
18
19
 
20
+ Just 1 simple command
21
+
19
22
  Rails generate quick_shoulda:generate app/models/user.rb
23
+ or
24
+ Rails generate quick_shoulda:g app/models/user.rb
20
25
 
21
- This will add these bellow contents to spec/models/user_spec.rb with ( QuickShoulda will automatically create this file if not yet created )
26
+ These lines will be added to spec/models/user_spec.rb ( QuickShoulda will automatically create this file if it's not yet created )
22
27
 
23
28
  describe 'User' do
24
29
  describe '#Validations' do
data/Rakefile CHANGED
@@ -1,8 +1,9 @@
1
1
  require "bundler/gem_tasks"
2
+ require "quick_shoulda/version.rb"
2
3
 
3
4
  task :install_mah_gem do
4
5
  exec %{
5
6
  gem uninstall quick_shoulda;
6
7
  gem build quick_shoulda.gemspec;
7
- gem install quick_shoulda-0.0.2.gem; }
8
+ gem install quick_shoulda-#{QuickShoulda::VERSION}.gem; }
8
9
  end
@@ -0,0 +1,9 @@
1
+ module QuickShoulda
2
+ class GGenerator < ::Rails::Generators::Base
3
+ argument :model_path, :type => :string
4
+
5
+ def generate_shoulda_testcases
6
+ QuickShoulda.process(model_path)
7
+ end
8
+ end
9
+ end
@@ -0,0 +1,9 @@
1
+ module QuickShoulda
2
+ class GenerateGenerator < ::Rails::Generators::Base
3
+ argument :model_path, :type => :string
4
+
5
+ def generate_shoulda_testcases
6
+ QuickShoulda.process(model_path)
7
+ end
8
+ end
9
+ end
@@ -1,3 +1,3 @@
1
1
  module QuickShoulda
2
- VERSION = "0.0.3"
2
+ VERSION = "0.0.4"
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: quick_shoulda
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.3
4
+ version: 0.0.4
5
5
  prerelease:
6
6
  platform: ruby
7
7
  authors:
@@ -9,7 +9,7 @@ authors:
9
9
  autorequire:
10
10
  bindir: bin
11
11
  cert_chain: []
12
- date: 2013-04-29 00:00:00.000000000 Z
12
+ date: 2013-04-30 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: debugger
@@ -61,7 +61,8 @@ files:
61
61
  - README.rdoc
62
62
  - Rakefile
63
63
  - data/stored_strings.yml
64
- - lib/generators/quick_shoulda/generate/generate_generator.rb
64
+ - lib/generators/quick_shoulda/g_generator.rb
65
+ - lib/generators/quick_shoulda/generate_generator.rb
65
66
  - lib/quick_shoulda.rb
66
67
  - lib/quick_shoulda/errors.rb
67
68
  - lib/quick_shoulda/file_writer.rb
@@ -1,11 +0,0 @@
1
- module QuickShoulda
2
- module Generators
3
- class GenerateGenerator < ::Rails::Generators::Base
4
- argument :model_path, :type => :string
5
-
6
- def generate_shoulda_testcases
7
- QuickShoulda.process(model_path)
8
- end
9
- end
10
- end
11
- end