Sha256: 54768c0b001ea4209fc09748895f2005e8ffa7f887c61441fc962875178ec380

Contents?: true

Size: 1.16 KB

Versions: 2

Compression:

Stored size: 1.16 KB

Contents

ENV["RAILS_ENV"] ||= 'test'
require File.expand_path('../dummy/config/environment', __FILE__)
require 'pry'


RSpec.configure do |config|
  config.filter_run :focus => true
  config.run_all_when_everything_filtered = true

  config.expect_with :rspec do |expectations|

    expectations.include_chain_clauses_in_custom_matcher_descriptions = true
  end
  config.mock_with :rspec do |mocks|
    mocks.verify_partial_doubles = false
  end
end

require 'shoulda/matchers'

Dir["./spec/support/**/*.rb"].sort.each {|f| require f}

Dir[File.expand_path("../support/**/*.rb",__FILE__)].each {|f| require f}


class FakesController < ActionController::Base
  include Searchable  
  
  def set_meta_filters_here(args={})
    set_meta_filters(args)
  end
end

class Thing
  def self.all
    []
  end

  def self.select(*)
    []
  end
end

class Sample < Thing
  attr_accessor :barcode
  def initialize 
    @barcode = "0000000000000"
  end
end
class ClothingType < Thing
  attr_accessor :title 
  def initialize
    @title = "anorak"
  end
end
class Color < Thing
  attr_accessor :title
  def initialize 
    @title = "blue"
  end
end

def new_sample
  Sample.new
end

def new_color
  Color.new
end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
morse_searchable-0.0.7 spec/spec_helper.rb
morse_searchable-0.0.6 spec/spec_helper.rb