rspec-cells 0.1.5 → 0.1.6

Sign up to get free protection for your applications and to get access to all the features.
data/CHANGES.textile CHANGED
@@ -1,3 +1,7 @@
1
+ h2. 0.1.6
2
+
3
+ * Minor internal fixes.
4
+
1
5
  h2. 0.1.5
2
6
 
3
7
  * Fixed generated test for namespaced cells.
@@ -1,6 +1,6 @@
1
1
  module RSpec # :nodoc:
2
2
  module Cells # :nodoc:
3
- VERSION = '0.1.5'
3
+ VERSION = '0.1.6'
4
4
  end
5
5
  end
6
6
 
data/lib/rspec/cells.rb CHANGED
@@ -1,3 +1,5 @@
1
- require 'rspec/rails'
2
1
  require 'cell/test_case'
2
+ require 'rspec'
3
+ require 'rspec/rails/adapters'
4
+ require 'rspec/rails/example/rails_example_group'
3
5
  require 'rspec/rails/example/cell_example_group'
@@ -2,7 +2,6 @@ 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
6
5
 
7
6
  include RSpec::Rails::RailsExampleGroup
8
7
  include Cell::TestCase::TestMethods
@@ -61,10 +60,9 @@ module RSpec::Rails
61
60
  # we always render views in rspec-cells, so turn it on.
62
61
  subject { controller }
63
62
  end
64
-
65
- RSpec.configure do |c|
66
- c.include self, :example_group => { :file_path => /spec\/cells/ }
67
- end
68
-
69
63
  end
70
64
  end
65
+
66
+ RSpec.configure do |c|
67
+ c.include RSpec::Rails::CellExampleGroup, :example_group => { :file_path => /spec\/cells/ }
68
+ 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.5
4
+ version: 0.1.6
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-10-08 00:00:00.000000000 Z
12
+ date: 2012-11-18 00:00:00.000000000 Z
13
13
  dependencies:
14
14
  - !ruby/object:Gem::Dependency
15
15
  name: railties