Sha256: 7ac65be7d5062c5a66769d6a025d987424f08dc4739af204ecfcb4cdee56ddc0

Contents?: true

Size: 1.29 KB

Versions: 20

Compression:

Stored size: 1.29 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 "serves a file with a period in the name" do
    visit "/jquery.plugin_spec"
    page.should have_content("jQuery.fn.plugin()")
    page.should have_css(".test.pass", :count => 1)
  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

20 entries across 20 versions & 1 rubygems

Version Path
konacha-4.0.0 spec/server_spec.rb
konacha-3.7.0 spec/server_spec.rb
konacha-3.6.0 spec/server_spec.rb
konacha-3.5.1 spec/server_spec.rb
konacha-3.5.0 spec/server_spec.rb
konacha-3.4.0 spec/server_spec.rb
konacha-3.3.0 spec/server_spec.rb
konacha-3.2.5 spec/server_spec.rb
konacha-3.2.4 spec/server_spec.rb
konacha-3.2.3 spec/server_spec.rb
konacha-3.2.2 spec/server_spec.rb
konacha-3.2.1 spec/server_spec.rb
konacha-3.2.0 spec/server_spec.rb
konacha-3.1.0 spec/server_spec.rb
konacha-3.0.0 spec/server_spec.rb
konacha-2.7.0 spec/server_spec.rb
konacha-2.6.0 spec/server_spec.rb
konacha-2.5.1 spec/server_spec.rb
konacha-2.5.0 spec/server_spec.rb
konacha-2.4.0 spec/server_spec.rb