Sha256: e76bece1f4bea51bfc83c8dfa00a03d5f44a6523a53dcbe420870ad70a409352
Contents?: true
Size: 578 Bytes
Versions: 14
Compression:
Stored size: 578 Bytes
Contents
module RSpec::RailsApp::ArtifactFile module Matchers (::Rails3::Assist.artifacts - [:view]).each do |name| class_eval %{ def have_#{name}_file relative have_rails_artifact_file relative, :#{name} end alias_method :contain_#{name}_file, :have_#{name}_file } end def have_view_file folder, action= :show, view_ext='html.erb' arg = {:folder => folder, :action => action, :view_ext => view_ext} have_rails_file arg, :view end alias_method :contain_view_file, :have_view_file end end
Version data entries
14 entries across 14 versions & 1 rubygems