Sha256: 1372073dc6a8305d818f0d5b0931e46e07967e940959155b6ba653a3be6b23cf

Contents?: true

Size: 1.1 KB

Versions: 2

Compression:

Stored size: 1.1 KB

Contents

require 'spec_helper'

describe Konacha::Server, :type => :feature do
  before do
    Konacha.mode = :server
  end

  it "serves a root page" do
    visit "/"
    page.should have_content("Array#sum (js)")
    page.should have_css(".test.pass")
  end

  it "serves an individual JavaScript spec" do
    visit "/array_sum_js_spec"
    page.should have_content("Array#sum (js)")
    page.should have_css(".test.pass", :count => 2)
  end

  it "serves an individual CoffeeScript spec" do
    visit "/array_sum_cs_spec"
    page.should have_content("Array#sum (cs)")
    page.should have_css(".test.pass", :count => 2)
  end

  it "serves a spec in a subdirectory" do
    visit "/subdirectory/subdirectory_spec"
    page.should have_content("spec in subdirectory")
    page.should have_css(".test.pass")
  end

  it "serves a subdirectory of specs" do
    visit "/subdirectory"
    page.should have_content("spec in subdirectory")
    page.should have_css(".test.pass")
  end

  it "supports spec helpers" do
    visit "/spec_helper_spec"
    page.should have_content("two_plus_two")
    page.should have_css(".test.pass")
  end
end

Version data entries

2 entries across 2 versions & 1 rubygems

Version Path
konacha-2.3.0 spec/server_spec.rb
konacha-2.2.0 spec/server_spec.rb