Sha256: 450a7c5c3d92f136da873512b26551018af5f86cd9711b6e822c045401f70682
Contents?: true
Size: 607 Bytes
Versions: 1
Compression:
Stored size: 607 Bytes
Contents
require 'rubygems' require 'bundler/setup' require 'rails' require 'rspec-rails' require 'action_controller' # require 'active_model' require 'ostruct' require 'table_go' # require 'pry' RSpec.configure do |config| # some (optional) config here end class String def cleanup_html self.gsub(/\n/,'').gsub(/>\s*</, "><").strip end def cleanup_csv self.strip.gsub(/\n\s*/, "\n") end end class Article < OpenStruct extend ActiveModel::Naming extend ActiveModel::Translation def self.column_names [:ident, :title, :date_of_order, :vat, :price, :xmas_bonus, :my_type] end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
table_go-0.1.9 | spec/spec_helper.rb |