spec/static_assets_spec.rb in sinatra-exstatic-assets-2.0.4 vs spec/static_assets_spec.rb in sinatra-exstatic-assets-3.0.0

- old
+ new

@@ -170,23 +170,45 @@ Sinatra::Exstatic::Asset.any_instance .stub(:mtime_int) .and_return(1367612251) end context "Main" do - let(:fixture_file) { "./support/fixtures/main.txt" } - before do - get "/" + context "/" do + let(:fixture_file) { "./support/fixtures/main.html" } + before do + get "/" + end + it_should_behave_like "Any route" + subject { last_response.body } + it { should == expected } end - it_should_behave_like "Any route" - subject { last_response.body } - it { should == expected } + context "/deeper" do + let(:fixture_file) { "./support/fixtures/app-deeper.html" } + before do + get "/deeper" + end + it_should_behave_like "Any route" + subject { last_response.body } + it { should == expected } + end end context "Sub" do - let(:fixture_file) { "./support/fixtures/app2.txt" } - before do - get "/app2" + context "/app2/" do + let(:fixture_file) { "./support/fixtures/app2.html" } + before do + get "/app2" + end + it_should_behave_like "Any route" + subject { last_response.body } + it { should == expected } end - it_should_behave_like "Any route" - subject { last_response.body } - it { should == expected } + context "/app2/deeper" do + let(:fixture_file) { "./support/fixtures/app2-deeper.html" } + before do + get "/app2/deeper" + end + it_should_behave_like "Any route" + subject { last_response.body } + it { should == expected } + end end end \ No newline at end of file