Sha256: 84d3d8c31e06f298b6e66b077a9118d314e70da097b8264a93e77c2ecc73e0e4

Contents?: true

Size: 746 Bytes

Versions: 4

Compression:

Stored size: 746 Bytes

Contents

require 'spec_helper'

describe "Styleguide Example" do
  before do
    visit styleguide_engine_path
  end

  context "layout" do
    it "should have a header" do
      page.should have_xpath("//header", :text => "Styleguide Example")
    end
  end

  context "section 1.1" do
    it "should have a header" do
      page.should have_selector ".styleguide-example h3", :text => "1.1"
    end

    it "should list the file" do
      page.should have_selector ".styleguide-example h3 em", :text => "buttons.css"
    end

    it "should describe the selector" do
      page.should have_selector ".styleguide-description"
    end

    it "should show examples of the element" do
      page.should have_selector ".styleguide-element"
    end
  end
end

Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
rails-styleguide-0.0.4 spec/integration/styleguide_spec.rb
rails-styleguide-0.0.3 spec/integration/styleguide_spec.rb
rails-styleguide-0.0.2 spec/integration/styleguide_spec.rb
rails-styleguide-0.0.1 spec/integration/styleguide_spec.rb