spec/semipublic/rest_adapter_spec.rb in dm-rest-adapter-1.1.0.rc2 vs spec/semipublic/rest_adapter_spec.rb in dm-rest-adapter-1.1.0.rc3

- old
+ new

@@ -10,11 +10,11 @@ end describe '#create' do describe 'when provided a Resource' do before :all do - body = <<-XML.compress_lines + body = DataMapper::Ext::String.compress_lines(<<-XML) <book> <id type='datamapper::types::serial'>1</id> <created_at type='datetime'>2009-05-17T22:38:42-07:00</created_at> <title>DataMapper</title> <author>Dan Kubb</author> @@ -44,11 +44,11 @@ end describe '#read' do describe 'with unscoped query' do before :all do - body = <<-XML.compress_lines + body = DataMapper::Ext::String.compress_lines(<<-XML) <books> <book> <id type='datamapper::types::serial'>1</id> <created_at type='datetime'>2009-05-17T22:38:42-07:00</created_at> <title>DataMapper</title> @@ -80,11 +80,11 @@ before :all do @query = Book.all(:id => 1, :limit => 1).query - body = <<-XML.compress_lines + body = DataMapper::Ext::String.compress_lines(<<-XML) <book> <id type='datamapper::types::serial'>1</id> <created_at type='datetime'>2009-05-17T22:38:42-07:00</created_at> <title>DataMapper</title> <author>Dan Kubb</author> @@ -103,11 +103,11 @@ end end describe 'with query scoped by a non-key' do before :all do - body = <<-XML.compress_lines + body = DataMapper::Ext::String.compress_lines(<<-XML) <books> <book> <id type='datamapper::types::serial'>1</id> <created_at type='datetime'>2009-05-17T22:38:42-07:00</created_at> <title>DataMapper</title> @@ -140,11 +140,11 @@ end end describe 'with a non-standard model <=> storage_name relationship' do before :all do - body = <<-XML.compress_lines + body = DataMapper::Ext::String.compress_lines(<<-XML) <books> <book> <id type='datamapper::types::serial'>1</id> <created_at type='datetime'>2009-05-17T22:38:42-07:00</created_at> <title>DataMapper</title> @@ -170,11 +170,11 @@ end end describe '#update' do before :all do - body = <<-XML.compress_lines + body = DataMapper::Ext::String.compress_lines(<<-XML) <books> <book> <id type='datamapper::types::serial'>1</id> <created_at type='datetime'>2009-05-17T22:38:42-07:00</created_at> <title>DataMapper</title> @@ -187,11 +187,11 @@ FakeWeb.register_uri(:get, 'http://admin:secret@localhost:4000/books.xml', :status => 200, :headers => headers, :body => body) end before :all do - body = <<-XML.compress_lines + body = DataMapper::Ext::String.compress_lines(<<-XML) <book> <id type='datamapper::types::serial'>1</id> <created_at type='datetime'>2009-05-17T22:38:42-07:00</created_at> <title>DataMapper</title> <author>John Doe</author> @@ -218,10 +218,10 @@ end end describe '#delete' do before :all do - body = <<-XML.compress_lines + body = DataMapper::Ext::String.compress_lines(<<-XML) <books> <book> <id type='datamapper::types::serial'>1</id> <created_at type='datetime'>2009-05-17T22:38:42-07:00</created_at> <title>DataMapper</title>