Sha256: 99c94efdabfe98c2ba0c50913c1ad108aeab8879531046f5b1537ecb708f5594
Contents?: true
Size: 750 Bytes
Versions: 1
Compression:
Stored size: 750 Bytes
Contents
# This file is copied to ~/spec when you run 'ruby script/generate rspec' # from the project root directory. ENV["RAILS_ENV"] = "test" require File.expand_path(File.dirname(__FILE__) + "/../config/environment") require 'spec' require 'spec/rails' def revert_changes!(file,content) File.open(file,'w'){|might_have_been_modified| might_have_been_modified.write content } end class Document def self.find_by_extension(ext) Finder.new("ext:#{ext}").matching_documents.first end end ## Rspec-rails assume that everybody uses ActiveRecord, but that's not Picolena's case. module Spec module Matchers class Change alias_method :evaluate_value_proc, :evaluate_value_proc_without_ensured_evaluation_of_proxy end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
picolena-0.2.2 | lib/picolena/templates/spec/spec_helper.rb |