Sha256: 309b907f9d116d34cb2b3abfa553173e0df5b29a23ba37c37f0b58aa89517cc3
Contents?: true
Size: 1.14 KB
Versions: 2
Compression:
Stored size: 1.14 KB
Contents
require 'spec_helper' describe Konacha::Server, :type => :request do def app Konacha.application end 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-0.10.0 | spec/server_spec.rb |
konacha-0.9.1 | spec/server_spec.rb |