spec/spec_helper.rb in columns-0.0.1 vs spec/spec_helper.rb in columns-0.1.0

- old
+ new

@@ -3,48 +3,54 @@ require_relative '../lib/columns' include Columns def fixtures_path - File.expand_path(File.dirname(__FILE__) + '/fixtures') -end + File.expand_path(File.dirname(__FILE__) + '/fixtures')# {{{ +end# }}} def schema_file - file_path = File.expand_path(File.dirname(__FILE__) + '/fixtures/schema.rb') + file_path = File.expand_path(File.dirname(__FILE__) + '/fixtures/schema.rb')# {{{ File.read(file_path) -end +end# }}} def user_rb_path - File.expand_path(File.dirname(__FILE__) + '/fixtures/user.rb') -end + File.expand_path(File.dirname(__FILE__) + '/fixtures/user.rb')# {{{ +end# }}} def user_rb_file - file_path = File.expand_path(File.dirname(__FILE__) + '/fixtures/user.rb') + file_path = File.expand_path(File.dirname(__FILE__) + '/fixtures/user.rb')# {{{ File.read(file_path) -end +end# }}} def user_cleaned_file - file_path = File.expand_path(File.dirname(__FILE__) + '/fixtures/user_cleaned') + file_path = File.expand_path(File.dirname(__FILE__) + '/fixtures/user_cleaned')# {{{ File.read(file_path) -end +end# }}} def user_filled_file - file_path = File.expand_path(File.dirname(__FILE__) + '/fixtures/user_filled') + file_path = File.expand_path(File.dirname(__FILE__) + '/fixtures/user_filled')# {{{ File.read(file_path) -end +end# }}} +def integration_user_filled_file + file_path = File.expand_path(File.dirname(__FILE__) +# {{{ + '/fixtures/integration/user_filled') + File.read(file_path) +end# }}} + def remove_user_rb - file_path = File.expand_path(File.dirname(__FILE__) + '/fixtures/user.rb') + file_path = File.expand_path(File.dirname(__FILE__) + '/fixtures/user.rb')# {{{ FileUtils.rm_f(file_path) -end +end# }}} def create_user_rb - src = File.expand_path(File.dirname(__FILE__) + '/fixtures/user_filled') + src = File.expand_path(File.dirname(__FILE__) + '/fixtures/user_filled')# {{{ dest = File.expand_path(File.dirname(__FILE__) + '/fixtures/user.rb') FileUtils.cp(src, dest) -end +end# }}} def create_clean_user_rb - src = File.expand_path(File.dirname(__FILE__) + '/fixtures/user_cleaned') + src = File.expand_path(File.dirname(__FILE__) + '/fixtures/user_cleaned')# {{{ dest = File.expand_path(File.dirname(__FILE__) + '/fixtures/user.rb') FileUtils.cp(src, dest) -end +end# }}}