spec/models/rtml/instruction_spec.rb in rtml-2.0.3 vs spec/models/rtml/instruction_spec.rb in rtml-2.0.4
- old
+ new
@@ -7,11 +7,11 @@
'screen :init, :main',
'screen :main',
' display "test"',
])
- rtml_document.should resemble(:tml => [:screen, {:screen => :display}])
+ rtml_document.should resemble_tml(:tml => [:screen, {:screen => :display}])
end
it "should produce a document from instances" do
instructions = [ Rtml::Instruction.new(:name => :screen, :arguments => {:name => :init, :next => :main}),
Rtml::Instruction.new(:name => :screen, :arguments => {:name => :main}) ]
@@ -19,10 +19,10 @@
rtml_document = Rtml::Document.new
rtml_document.setup_default_document
instructions.each { |instruction| instruction.follow(rtml_document) }
- rtml_document.should resemble(:tml => [:screen, {:screen => :display}])
+ rtml_document.should resemble_tml(:tml => [:screen, {:screen => :display}])
end
end
context "built dynamically" do
context "with an entry point that exists" do