Permalink
Browse files

Stripped whitespace with "sake strip"

  • Loading branch information...
1 parent baee337 commit 603c996fd238737e0ecb8a552020a9846586c8d5 Dan Kubb committed Aug 12, 2008
@@ -2,4 +2,4 @@ module DataMapper
class Migration
VERSION = "0.9.4"
end
-end
+end
View
@@ -54,4 +54,3 @@ def quoted_name
end
end
-
@@ -40,11 +40,11 @@
it "should quote the table name for the adapter" do
@creator.quoted_table_name.should == (adapter == :mysql ? '`people`' : '"people"')
end
-
+
it "should allow for custom options" do
columns = @creator.instance_eval("@columns")
col = columns.detect{|c| c.name == "long_string"}
- col.instance_eval("@type").should include("200")
+ col.instance_eval("@type").should include("200")
end
end
View
@@ -1,3 +1,2 @@
--colour
--format progress
-
@@ -46,7 +46,7 @@
@adapter.should_receive(:class).and_return(DataMapper::Adapters::Sqlite3Adapter)
DataMapper::Migration.new(1, :do_nothing, {}) {}
end
-
+
it 'should extend the adapter with the right module' do
@adapter.should_receive(:extend).with(SQL::Sqlite3)
DataMapper::Migration.new(1, :do_nothing, {}) {}
@@ -64,10 +64,10 @@
m.instance_variable_get(:@verbose).should be_false
end
- it 'should set @verbose to true by default' do
+ it 'should set @verbose to true by default' do
@m.instance_variable_get(:@verbose).should be_true
end
-
+
it 'should set the @up_action to an empty block' do
@m.instance_variable_get(:@up_action).should be_kind_of(Proc)
end
@@ -77,7 +77,7 @@
end
it 'should evaluate the given block'
-
+
end
it 'should set the @up_action when #up is called with a block' do
@@ -166,7 +166,7 @@
end
- describe 'methods used in the action blocks' do
+ describe 'methods used in the action blocks' do
describe '#execute' do
before do
@@ -199,7 +199,7 @@
SQL::TableCreator.should_receive(:new).with(@adapter, :users, {}).and_return(@tc)
@m.create_table(:users) { }
end
-
+
it 'should convert the TableCreator object to an sql statement' do
@tc.should_receive(:to_sql).and_return('CREATE TABLE')
@m.create_table(:users) { }
@@ -444,4 +444,3 @@
end
end
-
@@ -4,7 +4,7 @@
require Pathname(__FILE__).dirname + '../../../lib/sql/column'
describe SQL::Column do
- before do
+ before do
@column = SQL::Column.new
end
@@ -15,4 +15,3 @@
end
end
-
@@ -95,5 +95,3 @@ class PostgresqlExtension
end
-
-
@@ -106,4 +106,3 @@ class Sqlite3Extension
end
-
@@ -46,7 +46,7 @@
@adapter.should_receive(:quote_table_name).with('users').and_return(%{'users'})
@tc.quoted_table_name.should == %{'users'}
end
-
+
it 'should initialze a new column and add it to the list of columns' do
col = mock('column')
SQL::TableCreator::Column.should_receive(:new).with(@adapter, :foo, :bar, {}).and_return(col)
@@ -55,7 +55,7 @@
end
it 'should output an SQL CREATE statement to build itself' do
- @tc.to_sql.should ==
+ @tc.to_sql.should ==
%{CREATE TABLE 'users' ()}
end
@@ -23,7 +23,7 @@
it 'should set @opts to the options hash' do
@tc.instance_variable_get("@opts").should == {}
end
-
+
it 'should set @statements to an empty array' do
@tc.instance_variable_get("@statements").should == []
end
@@ -4,7 +4,7 @@
require Pathname(__FILE__).dirname + '../../../lib/sql/table'
describe SQL::Table do
- before do
+ before do
@table = SQL::Table.new
end
@@ -23,7 +23,7 @@
column_a = mock('column', :name => 'id')
column_b = mock('column', :name => 'login')
@table.columns = [column_a, column_b]
-
+
@table.column('id').should == column_a
end
View
@@ -4,7 +4,7 @@
require Pathname(__FILE__).dirname + '../../lib/sql'
describe 'SQL module' do
-
+
it 'doesnt really do anything'
end

0 comments on commit 603c996

Please sign in to comment.