rspec-cells 0.1.3 → 0.1.4

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/CHANGES.textile CHANGED
@@ -1,3 +1,7 @@
1
+ h2. 0.1.4
2
+
3
+ * Another maintenance release since we broke the gem with the last release :-)
4
+
1
5
  h2. 0.1.3
2
6
 
3
7
  * Maintenance release.
@@ -1,6 +1,6 @@
1
1
  module RSpec # :nodoc:
2
2
  module Cells # :nodoc:
3
- VERSION = '0.1.3'
3
+ VERSION = '0.1.4'
4
4
  end
5
5
  end
6
6
 
data/lib/rspec/cells.rb CHANGED
@@ -1,4 +1,3 @@
1
+ require 'rspec/rails'
1
2
  require 'cell/test_case'
2
- require 'rspec/rails/adapters'
3
- require 'rspec/rails/example/rails_example_group'
4
3
  require 'rspec/rails/example/cell_example_group'
@@ -2,6 +2,7 @@ module RSpec::Rails
2
2
  # Lets you call #render_cell in Rspec2. Move your cell specs to <tt>spec/cells/</tt>.
3
3
  module CellExampleGroup
4
4
  extend ActiveSupport::Concern
5
+ extend RSpec::Rails::ModuleInclusion
5
6
 
6
7
  include RSpec::Rails::RailsExampleGroup
7
8
  include Cell::TestCase::TestMethods
@@ -60,9 +61,10 @@ module RSpec::Rails
60
61
  # we always render views in rspec-cells, so turn it on.
61
62
  subject { controller }
62
63
  end
63
- end
64
- end
65
64
 
66
- RSpec.configure do |c|
67
- c.include RSpec::Rails::CellExampleGroup, :example_group => { :file_path => /spec\/cells/ }
65
+ RSpec.configure do |c|
66
+ c.include self, :example_group => { :file_path => /spec\/cells/ }
67
+ end
68
+
69
+ end
68
70
  end
data/lib/rspec-cells.rb CHANGED
@@ -4,7 +4,7 @@ module RSpec
4
4
  rake_tasks do
5
5
  load "rspec/cells/tasks.rake"
6
6
  end
7
-
7
+
8
8
  initializer 'cells.rspec' do |app|
9
9
  require 'rspec/cells'
10
10
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: rspec-cells
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.3
4
+ version: 0.1.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: 2012-09-22 00:00:00.000000000 Z
12
+ date: 2012-09-24 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: railties