Sha256: e2c0d0b0b1b59148e7c75f415e23aa19b117a8f1d2a6e59adeb41c0083b514c7
Contents?: true
Size: 642 Bytes
Versions: 1
Compression:
Stored size: 642 Bytes
Contents
require File.expand_path(File.dirname(__FILE__) + '/../../../spec_helper') describe 'rails view helper' do use_helper :view before :each do create_view :account, :edit do %q{ <h1><%= title %></h1> } end end after :each do remove_view :account, :edit end it "should have an account/edit view file that displays a title" do root_dir.should have_view_file :account, :edit do |file| file.should match /<%=\s*title\s*%>/ end root_dir.should have_view :account, :edit do |klass| file.should match /<%=\s*title\s*%>/ end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
rails-app-spec-0.1.0 | spec/rails_app_spec/matchers/artifact/view_spec.rb |