konacha 3.2.4 → 3.2.5

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.
checksums.yaml CHANGED
@@ -1,7 +1,7 @@
1
1
  ---
2
2
  SHA1:
3
- metadata.gz: ab4c0793bf058462bd228a1bc1d8b4cdd17ad53c
4
- data.tar.gz: 998084e6c20558f96d810d6628b1e7a68cd06142
3
+ metadata.gz: 29db494a3c1e072adcbe33e4332019c65dfb0501
4
+ data.tar.gz: 4cb3c695c41ef7fa23fdc83597fd977b6e74f948
5
5
  SHA512:
6
- metadata.gz: a5ecc759609c4649018a094f177892dd003d6f15a6fcc61871a9eca22b09d2956d9a76ba9be6a4d1d552de3feda2a5ce4b82516885094394fe9bbeb0605fd5d0
7
- data.tar.gz: 02c621f71b179ebbec470e7ec420ff0d261213f6b1df54023304685807e829dd9028f4f8428c505edd76d7026bc58af43f6fb74f18d5bfec48e6a82d91a68ced
6
+ metadata.gz: b9a9c8e52fd139ffa4b107072a9db3f910c66ff1e75b063908f5b338ff79df9693cac894b2723ec2c3e274e0da50de3d3b303cd9b48998171028fb9eadb79499
7
+ data.tar.gz: 96621bc9d25f2f516dbbcdb707ebf939ea6b670b58491d3d37d074dbe20e1153de2e42256a363b2f8429719d8fb0282d374d064d4faf60723e2809099a21c285
data/Gemfile CHANGED
@@ -3,4 +3,3 @@ gemspec
3
3
 
4
4
  gem "railties", "~> 4.1.0"
5
5
  gem "sprockets-rails"
6
- gem "activemodel" # https://github.com/rspec/rspec-rails/pull/798
@@ -3,4 +3,3 @@ gemspec
3
3
 
4
4
  gem "railties", "~> 4.0.0"
5
5
  gem "sprockets-rails"
6
- gem "activemodel" # https://github.com/rspec/rspec-rails/pull/798
data/History.md CHANGED
@@ -1,5 +1,9 @@
1
1
  # master
2
2
 
3
+ # 3.2.5
4
+
5
+ * Better Rails 4.1 compatibility (#178)
6
+
3
7
  # 3.2.4
4
8
 
5
9
  * Only use colors when output is a tty (#179)
@@ -17,7 +17,7 @@ the asset pipeline and engines.}
17
17
  gem.test_files = `git ls-files -- {test,spec,features}/*`.split("\n")
18
18
  gem.name = "konacha"
19
19
  gem.require_paths = ["lib"]
20
- gem.version = "3.2.4"
20
+ gem.version = "3.2.5"
21
21
  gem.license = "MIT"
22
22
 
23
23
  gem.add_dependency "railties", ">= 3.1", "< 5"
@@ -27,11 +27,11 @@ the asset pipeline and engines.}
27
27
  gem.add_dependency "colorize"
28
28
 
29
29
  gem.add_development_dependency "jquery-rails"
30
- gem.add_development_dependency "rspec-rails", "~> 2.14"
30
+ gem.add_development_dependency "rspec-rails", "~> 3.1"
31
31
  gem.add_development_dependency "capybara-firebug", "~> 1.1"
32
32
  gem.add_development_dependency "coffee-script"
33
33
  gem.add_development_dependency "ejs"
34
34
  gem.add_development_dependency "tzinfo"
35
35
  gem.add_development_dependency "selenium-webdriver"
36
- gem.add_development_dependency "poltergeist", "~> 1.3.0"
36
+ gem.add_development_dependency "poltergeist", "~> 1.5"
37
37
  end
@@ -45,7 +45,7 @@ module Konacha
45
45
  options.formatters ||= self.class.formatters
46
46
 
47
47
  app.config.assets.paths << app.root.join(options.spec_dir).to_s
48
- app.config.assets.precompile << lambda{|path| path =~ %r{\.(js|coffee)$} }
48
+ app.config.assets.raise_runtime_errors = false
49
49
  end
50
50
  end
51
51
  end
@@ -8,13 +8,13 @@ describe Konacha::SpecsController do
8
8
  describe '#parent' do
9
9
  it 'accepts a mode parameter and assigns it to @run_mode' do
10
10
  get :parent, :mode => 'runner'
11
- assigns[:run_mode].should be_runner
11
+ assigns[:run_mode].runner?.should be_truthy
12
12
  end
13
13
 
14
14
  it 'uses the Konacha.mode if no mode parameter is specified' do
15
15
  Konacha.stub(:mode => :konacha_mode)
16
16
  get :parent
17
- assigns[:run_mode].should be_konacha_mode
17
+ assigns[:run_mode].konacha_mode?.should be_truthy
18
18
  end
19
19
  end
20
20
 
@@ -49,24 +49,24 @@ describe Konacha::Reporter::Example do
49
49
  describe "#passed?" do
50
50
  it "returns true iff execution_result[:status] is passed" do
51
51
  subject.should_receive(:execution_result) { {:status => "passed"} }
52
- subject.passed?.should be_true
52
+ subject.passed?.should == true
53
53
  end
54
54
 
55
55
  it "returns false" do
56
56
  subject.should_receive(:execution_result) { {} }
57
- subject.passed?.should be_false
57
+ subject.passed?.should == false
58
58
  end
59
59
  end
60
60
 
61
61
  describe "#failed?" do
62
62
  it "returns true iff execution_result[:status] is failed" do
63
63
  subject.should_receive(:execution_result) { {:status => "failed"} }
64
- subject.failed?.should be_true
64
+ subject.failed?.should == true
65
65
  end
66
66
 
67
67
  it "returns false" do
68
68
  subject.should_receive(:execution_result) { {} }
69
- subject.failed?.should be_false
69
+ subject.failed?.should == false
70
70
  end
71
71
  end
72
72
 
@@ -44,11 +44,11 @@ describe Konacha::Reporter::Metadata do
44
44
  describe "#pending" do
45
45
  it "returns true iff status is pending" do
46
46
  subject.update('status' => 'pending')
47
- subject.pending.should be_true
47
+ subject.pending.should == true
48
48
  end
49
49
 
50
50
  it "returns false" do
51
- subject.pending.should be_false
51
+ subject.pending.should == false
52
52
  end
53
53
  end
54
54
 
@@ -5,7 +5,6 @@ ENV["RAILS_ENV"] = "development"
5
5
 
6
6
  require File.expand_path("../dummy/config/environment.rb", __FILE__)
7
7
  require "rspec/rails"
8
- require "rspec/autorun"
9
8
 
10
9
  # Preload to avoid occasional tilt warnings about thread safety
11
10
  require "coffee_script"
@@ -38,6 +37,16 @@ module Konacha
38
37
  end
39
38
 
40
39
  RSpec.configure do |config|
40
+ config.infer_spec_type_from_file_location!
41
+
42
+ config.mock_with :rspec do |c|
43
+ c.syntax = [:expect, :should]
44
+ end
45
+
46
+ config.expect_with :rspec do |c|
47
+ c.syntax = [:expect, :should]
48
+ end
49
+
41
50
  config.include Konacha::FeatureSpec, :type => :feature
42
51
  end
43
52
 
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: konacha
3
3
  version: !ruby/object:Gem::Version
4
- version: 3.2.4
4
+ version: 3.2.5
5
5
  platform: ruby
6
6
  authors:
7
7
  - John Firebaugh
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2014-08-06 00:00:00.000000000 Z
11
+ date: 2014-10-11 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: railties
@@ -112,14 +112,14 @@ dependencies:
112
112
  requirements:
113
113
  - - ~>
114
114
  - !ruby/object:Gem::Version
115
- version: '2.14'
115
+ version: '3.1'
116
116
  type: :development
117
117
  prerelease: false
118
118
  version_requirements: !ruby/object:Gem::Requirement
119
119
  requirements:
120
120
  - - ~>
121
121
  - !ruby/object:Gem::Version
122
- version: '2.14'
122
+ version: '3.1'
123
123
  - !ruby/object:Gem::Dependency
124
124
  name: capybara-firebug
125
125
  requirement: !ruby/object:Gem::Requirement
@@ -196,14 +196,14 @@ dependencies:
196
196
  requirements:
197
197
  - - ~>
198
198
  - !ruby/object:Gem::Version
199
- version: 1.3.0
199
+ version: '1.5'
200
200
  type: :development
201
201
  prerelease: false
202
202
  version_requirements: !ruby/object:Gem::Requirement
203
203
  requirements:
204
204
  - - ~>
205
205
  - !ruby/object:Gem::Version
206
- version: 1.3.0
206
+ version: '1.5'
207
207
  description: |-
208
208
  Konacha is a Rails engine that allows you to test your JavaScript with the
209
209
  mocha test framework and chai assertion library.