Sha256: b3b16211dfb128eb08459669acf2e91de485fc8880f8b7c094a411061575bfd7
Contents?: true
Size: 590 Bytes
Versions: 3
Compression:
Stored size: 590 Bytes
Contents
require 'spec_helper' # describe ::Rubiks::AnnotatedNode do # # API # specify { subject.respond_to?(:from_hash) } # specify { subject.respond_to?(:to_hash) } # # context 'when parsed from a valid hash' do # subject { described_class.new.from_hash('name' => 'some_name') } # # its(:name) { should eq('some_name') } # # its(:to_hash) { should have_key('name') } # # it { should be_valid } # end # # context 'when parsed from an invalid (empty) hash' do # subject { described_class.new.from_hash({}) } # # it { should_not be_valid } # end # # end
Version data entries
3 entries across 3 versions & 1 rubygems
Version | Path |
---|---|
rubiks-0.0.6 | spec/rubiks/nodes/annotated_node_spec.rb |
rubiks-0.0.5 | spec/rubiks/nodes/annotated_node_spec.rb |
rubiks-0.0.4 | spec/rubiks/nodes/annotated_node_spec.rb |