konacha 3.2.4 → 3.2.5
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/Gemfile +0 -1
- data/Gemfile-rails40 +0 -1
- data/History.md +4 -0
- data/konacha.gemspec +3 -3
- data/lib/konacha/engine.rb +1 -1
- data/spec/controllers/specs_controller_spec.rb +2 -2
- data/spec/reporter/example_spec.rb +4 -4
- data/spec/reporter/metadata_spec.rb +2 -2
- data/spec/spec_helper.rb +10 -1
- metadata +6 -6
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA1:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: 29db494a3c1e072adcbe33e4332019c65dfb0501
|
4
|
+
data.tar.gz: 4cb3c695c41ef7fa23fdc83597fd977b6e74f948
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: b9a9c8e52fd139ffa4b107072a9db3f910c66ff1e75b063908f5b338ff79df9693cac894b2723ec2c3e274e0da50de3d3b303cd9b48998171028fb9eadb79499
|
7
|
+
data.tar.gz: 96621bc9d25f2f516dbbcdb707ebf939ea6b670b58491d3d37d074dbe20e1153de2e42256a363b2f8429719d8fb0282d374d064d4faf60723e2809099a21c285
|
data/Gemfile
CHANGED
data/Gemfile-rails40
CHANGED
data/History.md
CHANGED
data/konacha.gemspec
CHANGED
@@ -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.
|
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", "~>
|
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.
|
36
|
+
gem.add_development_dependency "poltergeist", "~> 1.5"
|
37
37
|
end
|
data/lib/konacha/engine.rb
CHANGED
@@ -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.
|
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
|
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
|
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
|
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
|
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
|
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
|
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
|
47
|
+
subject.pending.should == true
|
48
48
|
end
|
49
49
|
|
50
50
|
it "returns false" do
|
51
|
-
subject.pending.should
|
51
|
+
subject.pending.should == false
|
52
52
|
end
|
53
53
|
end
|
54
54
|
|
data/spec/spec_helper.rb
CHANGED
@@ -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
|
+
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-
|
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: '
|
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: '
|
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.
|
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.
|
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.
|