Permalink
Browse files

Minor test fixes

  • Loading branch information...
Darrick Wiebe
Darrick Wiebe committed Feb 25, 2009
1 parent 3b5102b commit 7cd58185e249d72e0c408af8203dd67edb8574a2
Showing with 3 additions and 3 deletions.
  1. +1 −1 spec/dsl_spec.rb
  2. +2 −2 spec/objectify_xml_spec.rb
View
@@ -51,7 +51,7 @@ class MyAuthor < A::Author
A::Feed.metadata[:attributes].should_not include('links')
A::Feed.metadata[:qualified_attributes].should include('link')
A::Feed.metadata[:collections].should include('link')
- A::Feed.metadata[:types]['link'].should == :Link
+ A::Feed.metadata[:types]['link'].to_s.should match(/Link/)
end
end
@@ -45,9 +45,9 @@ def x.primary_xml_element(xml)
end
describe 'with ""' do
- it 'should call primary_xml_element with a Nokogiri XML object' do
+ it 'should not call primary_xml_element' do
Xml.new('') do |x|
- x.expects(:primary_xml_element)
+ x.expects(:primary_xml_element).never
end
end
end

0 comments on commit 7cd5818

Please sign in to comment.