Sha256: 71219cae298fb0791e3c279e6ccb04bf96854a2eb459e1cbfcca785e27e050b4

Contents?: true

Size: 409 Bytes

Versions: 8

Compression:

Stored size: 409 Bytes

Contents

[:be_an_instance_of, :be_instance_of].each do |method|
  describe "Opal expect(actual).to #{method}(expected)" do
    it "provides a description" do
      matcher = be_an_instance_of(Fixnum)
      matcher.matches?(Numeric)
      # opal fixnum == numeric
      # expect(matcher.description).to eq "be an instance of Fixnum"
      expect(matcher.description).to eq "be an instance of Numeric"
    end
  end
end

Version data entries

8 entries across 8 versions & 2 rubygems

Version Path
opal-rspec-0.6.2 spec/rspec/expectations/opal_alternates/be_instance_of_spec.rb
opal-rspec-0.7.0.rc.1 spec-opal-rspec/expectations/be_instance_of_spec.rb
opal-rspec-0.6.1 spec/rspec/expectations/opal_alternates/be_instance_of_spec.rb
opal-rspec-0.6.0 spec/rspec/expectations/opal_alternates/be_instance_of_spec.rb
opal-rspec-0.6.0.beta1 spec/rspec/expectations/opal_alternates/be_instance_of_spec.rb
opal-connect-rspec-0.5.0 spec/rspec/expectations/opal_alternates/be_instance_of_spec.rb
opal-rspec-0.5.0 spec/rspec/expectations/opal_alternates/be_instance_of_spec.rb
opal-rspec-0.5.0.beta3 spec/rspec/expectations/opal_alternates/be_instance_of_spec.rb