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 +4 -4
- data/.travis.yml +3 -0
- data/Rakefile +4 -13
- data/lib/opal/rspec/version.rb +1 -1
- data/rspec-core/tmp/aruba/spec/file_1_spec.rb +5 -0
- data/rspec-core/tmp/aruba/spec/file_2_spec.rb +10 -0
- data/spec/rspec/mocks/filter/bugs/receive.rb +7 -0
- metadata +8 -7
- data/spec/rspec/mocks/filter/bugs/receive.txt +0 -5
    
        checksums.yaml
    CHANGED
    
    | @@ -1,7 +1,7 @@ | |
| 1 1 | 
             
            ---
         | 
| 2 2 | 
             
            SHA1:
         | 
| 3 | 
            -
              metadata.gz:  | 
| 4 | 
            -
              data.tar.gz:  | 
| 3 | 
            +
              metadata.gz: 42af0c5e71dd713a36d907bb120ba9515d7c173c
         | 
| 4 | 
            +
              data.tar.gz: 96bae86f6511b97b5b6262cf65353e105d89e67f
         | 
| 5 5 | 
             
            SHA512:
         | 
| 6 | 
            -
              metadata.gz:  | 
| 7 | 
            -
              data.tar.gz:  | 
| 6 | 
            +
              metadata.gz: 937f0fc654e551d202cc2115dcf559ce707f941128379e75129a6bdd51bf31a9f36c497520cb3581920cddac25fa0110157176a352261485f76d40b32509ff2d
         | 
| 7 | 
            +
              data.tar.gz: 1039f4cc1d3fc1abd23e98ec73776ae35821b00bb90d520dd56f910983c6f17dce69657ac36a26482fb6f6a0800faba61e36fe639525c59effc0b2c088aa61a5
         | 
    
        data/.travis.yml
    CHANGED
    
    
    
        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 => [: | 
| 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 => [: | 
| 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 => [: | 
| 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}'
         | 
    
        data/lib/opal/rspec/version.rb
    CHANGED
    
    
| @@ -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 | 
| 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- | 
| 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. | 
| 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:  | 
| 744 | 
            +
                  version: '0'
         | 
| 743 745 | 
             
            requirements: []
         | 
| 744 746 | 
             
            rubyforge_project: 
         | 
| 745 | 
            -
            rubygems_version: 2. | 
| 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
         |