Sha256: 726812cdd46b76597873d146a4f688af224fc6b14166023b5cae8a2a3017e60d
Contents?: true
Size: 398 Bytes
Versions: 4
Compression:
Stored size: 398 Bytes
Contents
require 'spec_helper' describe 'stache/ivar' do it "should access an instance variable defined with RSpec #assign in a view method" do assign(:user_name, "Thomas") render rendered.should include "Thomas" end it "should access an instance variable defined directly in RSpec in a view method" do @user_name = "Stefan" render rendered.should include "Stefan" end end
Version data entries
4 entries across 4 versions & 1 rubygems
Version | Path |
---|---|
stache-1.2.0 | spec/views/ivar_spec.rb |
stache-1.1.1 | spec/views/ivar_spec.rb |
stache-1.1.0 | spec/views/ivar_spec.rb |
stache-1.0.3 | spec/views/ivar_spec.rb |