Sha256: 2a05bc6eb3ef6d2aee5622fda6d93d6138ca8ae952d9d051a5f920369d8756bc
Contents?: true
Size: 552 Bytes
Versions: 1
Compression:
Stored size: 552 Bytes
Contents
module RSpec::RailsApp::ArtifactFile module Matchers include ::Rails::Assist::App (::Rails::Assist.artifacts - [:view]).each do |name| class_eval %{ def have_#{name}_file relative have_rails_file relative, :#{name} end alias_method :contain_#{name}_file, :have_#{name}_file } end def have_view_file(relative, action='show', ext='html.erb') have_rails_file "#{relative}/#{action}.#{ext}", :view end alias_method :contain_view_file, :have_view_file end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
rails-app-spec-0.1.0 | lib/rails_app_spec/matchers/artifact/have_artifact_file.rb |