spec/lib/base_spec.rb in wrap_it-0.1.1 vs spec/lib/base_spec.rb in wrap_it-0.1.2
- old
+ new
@@ -8,9 +8,13 @@
it 'have default_tag class method' do
successor_class.class_eval { default_tag 'a' }
expect(successor.tag).to eq 'a'
end
+ it 'gets tag name from options' do
+ expect(successor(tag: 'p').tag).to eq 'p'
+ end
+
it 'extends @arguments with ArgumentsArray module' do
expect(
successor.instance_variable_get(:@arguments)
).to be_kind_of WrapIt::ArgumentsArray
end