Sha256: 99858983e66ff61e842013adffa3f9239389a3750e5af89dfc3dd5c4e674adfa

Contents?: true

Size: 308 Bytes

Versions: 11

Compression:

Stored size: 308 Bytes

Contents

describe "One-liner should syntax" do
  subject { 42 }

  describe "should" do
    it { should == 42 }
    it { should_not == 43 }
  end

  describe "is_expected" do
    it { is_expected.to eq(42) }
    it { is_expected.to_not eq(43) }
  end

  describe "expect" do
    it { expect(42).to eq(42) }
  end
end

Version data entries

11 entries across 11 versions & 3 rubygems

Version Path
opal-connect-rspec-0.5.0 spec/opal/should_syntax_spec.rb
opal-rspec-0.5.0 spec/opal/should_syntax_spec.rb
opal-rspec-0.5.0.beta3 spec/opal/should_syntax_spec.rb
opal-rspec-0.5.0.beta2 spec/should_syntax_spec.rb
opal-rspec-0.5.0.beta1 spec/should_syntax_spec.rb
opal-rspec-cj-0.4.4 spec/should_syntax_spec.rb
opal-rspec-0.4.3 spec/should_syntax_spec.rb
opal-rspec-0.4.2 spec/should_syntax_spec.rb
opal-rspec-0.4.1 spec/should_syntax_spec.rb
opal-rspec-0.4.0 spec/should_syntax_spec.rb
opal-rspec-0.4.0.beta4 spec/should_syntax_spec.rb