Sha256: 6426327ef87bbfa7e34732018b9bc454c8c447c2f9f5931e63bb2a14c528c885
Contents?: true
Size: 524 Bytes
Versions: 1
Compression:
Stored size: 524 Bytes
Contents
require 'spec_helper' describe "Filters" do before do @session = Capybara::Session.new(:akephalos, TestApp) end context "with no filter" do it "returns the page's source" do @session.visit "/" @session.source.should == "Hello world!" end end context "with a filter" do after { Akephalos.filters.clear } it "returns the filter's source" do Akephalos.filter :get, %r{.*}, :body => "Howdy!" @session.visit "/" @session.source.should == "Howdy!" end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
akephalos-0.0.5 | spec/filter_spec.rb |