Sha256: 20d7f81c151bc5f36e2a7da3b08c0d4471a1b7a2006f4ddf90860815f5cda20a

Contents?: true

Size: 335 Bytes

Versions: 9

Compression:

Stored size: 335 Bytes

Contents

require_relative '../lib/rails_view.rb'
require_relative '../test/testing.rb'

Testing View do

  testing 'simple rendering' do
    time = Time.now

    html_safe_string =
      assert do
        View.render(:inline => "<%= time %>", :locals => {:time => time})
      end

    assert{ html_safe_string.include?(time.to_s) }
  end

end

Version data entries

9 entries across 9 versions & 1 rubygems

Version Path
rails_view-3.2.0 test/rails_view_test.rb
rails_view-3.1.0 test/rails_view_test.rb
rails_view-3.0.0 test/rails_view_test.rb
rails_view-2.3.0 test/rails_view_test.rb
rails_view-2.2.0 test/rails_view_test.rb
rails_view-2.0.0 test/rails_view_test.rb
rails_view-1.2.0 test/rails_view_test.rb
rails_view-1.0.1 test/rails_view_test.rb
rails_view-1.0.0 test/rails_view_test.rb