Sha256: 8c9216bc22bb0e52959127d38f60bc1f078c03ec2303b14815c5809a02062f44

Contents?: true

Size: 490 Bytes

Versions: 17

Compression:

Stored size: 490 Bytes

Contents

require 'spec_helper'

describe "articles/show.html.haml" do

  before(:each) do
    assign(:article, create(:full_article))
    render template: "articles/show"
  end

  it "displays redditor text content" do
    expect(rendered.index("text_block") > 0).to eq true
  end

  it "displays redditor video content" do
    expect(rendered.index("video_block") > 0).to eq true
  end

  it "displays redditor slider content" do
    expect(rendered.index("slider_block") > 0).to eq true
  end

end

Version data entries

17 entries across 17 versions & 1 rubygems

Version Path
redditor-0.1.17 spec/views/article/show_spec.rb
redditor-0.1.16 spec/views/article/show_spec.rb
redditor-0.1.15 spec/views/article/show_spec.rb
redditor-0.1.14 spec/views/article/show_spec.rb
redditor-0.1.12 spec/views/article/show_spec.rb
redditor-0.1.11 spec/views/article/show_spec.rb
redditor-0.1.10 spec/views/article/show_spec.rb
redditor-0.1.9 spec/views/article/show_spec.rb
redditor-0.1.8 spec/views/article/show_spec.rb
redditor-0.1.7 spec/views/article/show_spec.rb
redditor-0.1.6 spec/views/article/show_spec.rb
redditor-0.1.5 spec/views/article/show_spec.rb
redditor-0.1.4 spec/views/article/show_spec.rb
redditor-0.1.3 spec/views/article/show_spec.rb
redditor-0.1.2 spec/views/article/show_spec.rb
redditor-0.1.1 spec/views/article/show_spec.rb
redditor-0.1.0 spec/views/article/show_spec.rb