niessner-rspec_controller_macros 0.0.1 → 0.0.2

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.
data/README CHANGED
@@ -4,14 +4,13 @@ Installing
4
4
  ENV["RAILS_ENV"] = "test"
5
5
  to the top of /spec/spec_helper.rb
6
6
  2) Add:
7
- config.gem "niessner-rspec_view_macros", :lib => "rspec_view_macros", :source => "http://gems.github.com"
7
+ config.gem "niessner-rspec_controller_macros"
8
8
  to your environment.rb inside the Initializer.run block
9
9
 
10
10
  Usage
11
11
  ----------
12
-
13
- Registering roles
14
- In the configure block of your spec/spec_helper.rb register roles by doing:
12
+ Register roles by adding code similar to the following in the configure block of your
13
+ spec/spec_helper.rb
15
14
 
16
15
  Rspec::UserRoles.register(:visitor) {nil}
17
16
  Rspec::UserRoles.register(:user) {User.new}
@@ -21,7 +20,7 @@ Rspec::UserRoles.register(:admin) do
21
20
  user
22
21
  end
23
22
 
24
- Let's you write specs similar to:
23
+ You can write specs that work similar to what's below.
25
24
 
26
25
  describe Admin::ArticlesController do
27
26
  describe "get index" do
data/Rakefile CHANGED
@@ -5,7 +5,7 @@ require 'date'
5
5
 
6
6
  spec = Gem::Specification.new do |s|
7
7
  s.name = "rspec_controller_macros"
8
- s.version = "0.0.1"
8
+ s.version = "0.0.2"
9
9
  s.summary = "Some macros to make it more convenient to spec controllers."
10
10
  s.files = FileList['[A-Z]*', 'lib/**/*.rb']
11
11
  s.require_path = 'lib'
@@ -0,0 +1 @@
1
+ require 'rspec_controller_macros'
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: niessner-rspec_controller_macros
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.0.1
4
+ version: 0.0.2
5
5
  platform: ruby
6
6
  authors:
7
7
  - Michael Niessner
@@ -24,6 +24,7 @@ extra_rdoc_files: []
24
24
  files:
25
25
  - Rakefile
26
26
  - README
27
+ - lib/niessner-rspec_controller_macros.rb
27
28
  - lib/rspec_controller_macros.rb
28
29
  - lib/rspec/controller_as_a_macro.rb
29
30
  - lib/rspec/controller_be_a_redirect_macro.rb