Sha256: e8e5d7a663d31a8e507969950a4e5caf5250aee2adbf5bf2eec4517490a6ab08

Contents?: true

Size: 337 Bytes

Versions: 10

Compression:

Stored size: 337 Bytes

Contents

require 'spec_helper'

describe "static/home" do
  it "should have claimed = false in the source when unclaimed" do
    render

    rendered.should have_tag("script", :text => "")
  end

  it "should have claimed = true in the source when unclaimed" do
    render

    rendered.should contain("var _cloudfuji_claimed = true;")
  end
end

Version data entries

10 entries across 10 versions & 1 rubygems

Version Path
cloudfuji-0.0.46 test_app/spec/views/home.html.erb_spec.rb
cloudfuji-0.0.45 test_app/spec/views/home.html.erb_spec.rb
cloudfuji-0.0.44 test_app/spec/views/home.html.erb_spec.rb
cloudfuji-0.0.43 test_app/spec/views/home.html.erb_spec.rb
cloudfuji-0.0.42 test_app/spec/views/home.html.erb_spec.rb
cloudfuji-0.0.41 test_app/spec/views/home.html.erb_spec.rb
cloudfuji-0.0.40 test_app/spec/views/home.html.erb_spec.rb
cloudfuji-0.0.39 test_app/spec/views/home.html.erb_spec.rb
cloudfuji-0.0.38 test_app/spec/views/home.html.erb_spec.rb
cloudfuji-0.0.37 test_app/spec/views/home.html.erb_spec.rb