opal-rspec 0.6.0.beta1 → 0.6.0

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: 882a14ef615ce8c04e42e0251c20689eab6d0cb9
4
- data.tar.gz: 7ace5634304dc7cd953aa5de1af4ad1c31140586
3
+ metadata.gz: 42af0c5e71dd713a36d907bb120ba9515d7c173c
4
+ data.tar.gz: 96bae86f6511b97b5b6262cf65353e105d89e67f
5
5
  SHA512:
6
- metadata.gz: c18a02f4f4fd2221c5a1baf9976a7ce0298c3511694cf41c622ba07d19ffb3f02c80f596ad1fef813588422454e0b3ae35623d3a3daf81d796c249e4b74cccd5
7
- data.tar.gz: c49795363ee60fd59e6308767e5c97605a697e6ad9d1adcf0a82ae6492363db2e7f28ac4a795dc8674baeb9a70e63498be3713cf0d8773722922323a78a8d975
6
+ metadata.gz: 937f0fc654e551d202cc2115dcf559ce707f941128379e75129a6bdd51bf31a9f36c497520cb3581920cddac25fa0110157176a352261485f76d40b32509ff2d
7
+ data.tar.gz: 1039f4cc1d3fc1abd23e98ec73776ae35821b00bb90d520dd56f910983c6f17dce69657ac36a26482fb6f6a0800faba61e36fe639525c59effc0b2c088aa61a5
data/.travis.yml CHANGED
@@ -53,6 +53,9 @@ before_install:
53
53
  before_script:
54
54
  - "export DISPLAY=:99.0"
55
55
  - "sh -e /etc/init.d/xvfb start"
56
+ - "phantomjs -v"
57
+ - "node -v"
58
+ - "firefox --version"
56
59
 
57
60
  notifications:
58
61
  irc: "irc.freenode.org#opal"
data/Rakefile CHANGED
@@ -10,28 +10,19 @@ require_relative 'spec/rspec/support/support_spec_loader'
10
10
  require_relative 'spec/rspec/mocks/mocks_spec_loader'
11
11
 
12
12
  desc 'Run the full suite, this can time out on Travis'
13
- task :default => [:phantom_node_ver,
14
- :unit_specs,
13
+ task :default => [:unit_specs,
15
14
  :verify_opal_specs,
16
15
  :integration_specs,
17
16
  :verify_rspec_specs]
18
17
 
19
18
  desc 'Run only tests that use the opal-rspec Rake task'
20
- task :rake_only => [:phantom_node_ver,
21
- :verify_opal_specs,
22
- :verify_rspec_specs]
19
+ task :rake_only => [:verify_rspec_specs,
20
+ :verify_opal_specs]
23
21
 
24
22
  desc 'Sanity checks a given version of MRI and run a basic check'
25
- task :mri_sanity_check => [:phantom_node_ver,
26
- :unit_specs,
23
+ task :mri_sanity_check => [:unit_specs,
27
24
  :integration_specs]
28
25
 
29
- task :phantom_node_ver do
30
- sh 'phantomjs -v'
31
- sh 'node -v'
32
- sh 'firefox --version'
33
- end
34
-
35
26
  desc 'Runs a set of specs in opal'
36
27
  Opal::RSpec::RakeTask.new(:opal_specs) do |_, task|
37
28
  task.pattern = 'spec/opal/**/*_spec.{rb,opal}'
@@ -1,5 +1,5 @@
1
1
  module Opal
2
2
  module RSpec
3
- VERSION = '0.6.0.beta1'
3
+ VERSION = '0.6.0'
4
4
  end
5
5
  end
@@ -0,0 +1,5 @@
1
+ RSpec.describe 'File 1' do
2
+ it('passes') { }
3
+ it('fails') { fail }
4
+ end
5
+
@@ -0,0 +1,10 @@
1
+ RSpec.configure do |c|
2
+ c.filter_run_excluding :exclude_me
3
+ end
4
+
5
+ RSpec.describe 'File 2' do
6
+ it('passes') { }
7
+ it('passes') { }
8
+ it('fails', :exclude_me) { fail }
9
+ end
10
+
@@ -0,0 +1,7 @@
1
+ rspec_filter 'receive' do
2
+ # can't change expect/should right now due to undef/Opal
3
+ filter 'RSpec::Mocks::Matchers::Receive when used in a test framework without rspec-expectations can toggle the available syntax'
4
+
5
+ filter('RSpec::Mocks::Matchers::Receive expect(...).to receive behaves like an expect syntax expectation behaves like a receive matcher allows chaining off a `do...end` block implementation to be provided').unless { at_least_opal_0_11? }
6
+ filter('RSpec::Mocks::Matchers::Receive allow(...).to receive behaves like an expect syntax allowance behaves like a receive matcher allows chaining off a `do...end` block implementation to be provided').unless { at_least_opal_0_11? }
7
+ end
metadata CHANGED
@@ -1,14 +1,14 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: opal-rspec
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.6.0.beta1
4
+ version: 0.6.0
5
5
  platform: ruby
6
6
  authors:
7
7
  - Adam Beynon
8
8
  autorequire:
9
9
  bindir: bin
10
10
  cert_chain: []
11
- date: 2016-07-07 00:00:00.000000000 Z
11
+ date: 2016-08-29 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: opal
@@ -291,6 +291,8 @@ files:
291
291
  - rspec-core/spec/support/sandboxing.rb
292
292
  - rspec-core/spec/support/shared_example_groups.rb
293
293
  - rspec-core/spec/support/spec_files.rb
294
+ - rspec-core/tmp/aruba/spec/file_1_spec.rb
295
+ - rspec-core/tmp/aruba/spec/file_2_spec.rb
294
296
  - rspec-expectations/benchmarks/2.x_vs_3.x_matcher_dsl_implementation.rb
295
297
  - rspec-expectations/benchmarks/autoload_v_require.rb
296
298
  - rspec-expectations/benchmarks/cloning_matchers.rb
@@ -677,7 +679,7 @@ files:
677
679
  - spec/rspec/mocks/filter/bugs/mocks.txt
678
680
  - spec/rspec/mocks/filter/bugs/mutate_const.txt
679
681
  - spec/rspec/mocks/filter/bugs/partial_double.rb
680
- - spec/rspec/mocks/filter/bugs/receive.txt
682
+ - spec/rspec/mocks/filter/bugs/receive.rb
681
683
  - spec/rspec/mocks/filter/bugs/should_syntax.txt
682
684
  - spec/rspec/mocks/filter/bugs/space.txt
683
685
  - spec/rspec/mocks/filter/bugs/spy.txt
@@ -737,14 +739,13 @@ required_ruby_version: !ruby/object:Gem::Requirement
737
739
  version: '0'
738
740
  required_rubygems_version: !ruby/object:Gem::Requirement
739
741
  requirements:
740
- - - ">"
742
+ - - ">="
741
743
  - !ruby/object:Gem::Version
742
- version: 1.3.1
744
+ version: '0'
743
745
  requirements: []
744
746
  rubyforge_project:
745
- rubygems_version: 2.6.3
747
+ rubygems_version: 2.4.5.1
746
748
  signing_key:
747
749
  specification_version: 4
748
750
  summary: RSpec for Opal
749
751
  test_files: []
750
- has_rdoc:
@@ -1,5 +0,0 @@
1
- # can't change expect/should right now due to undef/Opal
2
- RSpec::Mocks::Matchers::Receive when used in a test framework without rspec-expectations can toggle the available syntax
3
-
4
- RSpec::Mocks::Matchers::Receive expect\(...\).to receive behaves like an expect syntax expectation behaves like a receive matcher allows chaining off a `do...end` block implementation to be provided
5
- RSpec::Mocks::Matchers::Receive allow\(...\).to receive behaves like an expect syntax allowance behaves like a receive matcher allows chaining off a `do...end` block implementation to be provided