Sha256: ef955562a48a6e780ee321d48cf5cd5f5ba9513a2ec1ab8ca92d9b501b1c624d

Contents?: true

Size: 690 Bytes

Versions: 1

Compression:

Stored size: 690 Bytes

Contents

require 'rubygems'
require 'bundler/setup'
# require 'rails'
require 'rspec'
require 'action_controller'
# require 'active_model'
require 'ostruct'
require 'table_go'
require 'haml'
# require 'pry'

RSpec.configure do |config|
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


def read_file_from_fixtures_path(file)
  File.read(File.dirname(__FILE__) + '/fixtures/%s' % file)
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
table_go-0.2.0 spec/spec_helper.rb