spec/rubiks/level_spec.rb in rubiks-0.1.3 vs spec/rubiks/level_spec.rb in rubiks-0.1.4
- old
+ new
@@ -15,6 +15,15 @@
its(:json_hash) { should have_key 'cardinality' }
its(:json_hash) { should have_key 'contiguous' }
its(:xml_hash) { should_not have_key :cardinality }
end
+
+ context 'when hidden' do
+ subject { described_class.new('default', :hidden => true) }
+
+ it 'includes the hidden attribute' do
+ subject.json_hash.should have_key 'hidden'
+ subject.json_hash['hidden'].should eq 'true'
+ end
+ end
end