Sha256: 3dd2e42d6b14047b202f64766449bd565685c4dc843ab90cc9d6718ff62751fb
Contents?: true
Size: 845 Bytes
Versions: 3
Compression:
Stored size: 845 Bytes
Contents
require_relative '../test-util' describe 'Model::TicketExpr' do it 'should equal' do TicketExpr.new("T").should == TicketExpr.new("T") end it 'should not equal' do TicketExpr.new("T").should.not == TicketExpr.new("t") end it 'should get name' do TicketExpr.new("T").name.should == "T" end end describe "Pione::Model::TicketExprSequence" do before do @x = TicketExpr.new("X") @y = TicketExpr.new("Y") @seq = TicketExprSequence.new([@x, @y]) end it "should equal" do @seq.should == TicketExprSequence.new([@x, @y]) end it "should not equal" do @seq.should != TicketExprSequence.new([@y, @x]) end it "should get ticket names" do @seq.names.should.include("X") @seq.names.should.include("Y") @seq.names.should.not.include("Z") end test_pione_method "ticket-expr" end
Version data entries
3 entries across 3 versions & 1 rubygems
Version | Path |
---|---|
pione-0.2.2 | test/model/spec_ticket-expr.rb |
pione-0.2.1 | test/model/spec_ticket-expr.rb |
pione-0.2.0 | test/model/spec_ticket-expr.rb |