Sha256: 725380857a0f1c1fb10274860095707f7850bfb82b152d309215c44a4e2ad5ea

Contents?: true

Size: 507 Bytes

Versions: 1

Compression:

Stored size: 507 Bytes

Contents

require 'spec_helper'

describe "forums" do
  before do
    @forum = Forem::Forum.create!(:title => "Welcome to Forem!",
                                 :description => "A placeholder forum.")
  end

  it "listing all" do
    visit forums_path
    page.should have_content("Welcome to Forem!")
    page.should have_content("A placeholder forum.")

  end

  it "visiting one" do
    visit forum_path(@forum.id)
    within("#forum h2") do
      page.should have_content("Welcome to Forem!")
    end
  end
end

Version data entries

1 entries across 1 versions & 1 rubygems

Version Path
forem-0.0.1 spec/integration/forums_spec.rb