Sha256: f4db52d25e4edde9325eb532aeccc9b21560aad1ecec561b20442962257d81bf
Contents?: true
Size: 995 Bytes
Versions: 1
Compression:
Stored size: 995 Bytes
Contents
require 'pork-rspec/test' describe M do it { is_expected.to eq(M) } it { expect(subject).to eq(M) } end describe C do it { is_expected.to be_a(C) } it { expect(subject).to be_a(C) } end describe 'string' do it { is_expected.to eq('string') } it { expect(subject).to eq('string') } end describe M do describe 'string' do it { is_expected.to eq(M) } it { expect(subject).to eq(M) } end end describe 'parent' do describe 'string' do it { is_expected.to eq('string') } it { expect(subject).to eq('string') } end end describe 'raise_error' do it do expect do raise 'test' end.to raise_error(RuntimeError) end it do expect do raise 'test' end.to raise_error(RuntimeError, 'test') end end describe 'contain_exactly and match_array' do it do expect([1]).to contain_exactly(1) end it do expect([1]).to match_array([1]) end end describe 'match' do it do expect('nnf').to match(/\A\w{3}\z/) end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
pork-rspec-0.5.0 | test/test_context.rb |