spec/useless/doc/ui/godel_spec.rb in useless-doc-0.5.0 vs spec/useless/doc/ui/godel_spec.rb in useless-doc-0.6.0
- old
+ new
@@ -112,9 +112,29 @@
td_content.should include 'Get dat twonk.'
as.find { |a| a.content == 'POST' }['href'].should == '/twonks/:id/werp#POST'
td_content.should include 'Make dem werps.'
end
+
+ it 'should display concept information' do
+ stages = @doc.css('table.stages').first.content
+ stages.should include 'Concept'
+ stages.should include 'John Henry'
+ end
+
+ it 'should display specification information' do
+ stages = @doc.css('table.stages').first.content
+ stages.should include 'Specification'
+ stages.should include 'Bill Wever'
+ stages.should include 'In Progress'
+ end
+
+ it 'should display implementation information' do
+ stages = @doc.css('table.stages').first.content
+ stages.should include 'Implementation'
+ stages.should include 'Bill Wever, John Henry'
+ stages.should include 'Pending'
+ end
end
context 'for a Core::Resource instance' do
before(:each) do
json = load_document('resource.json').read