Sha256: cf8dcf8dc2b39d64253d4486ce07b20ed8a880a46cb98df7fc5363c73a09bbb2
Contents?: true
Size: 1.05 KB
Versions: 1
Compression:
Stored size: 1.05 KB
Contents
require 'spec_helper' describe EngineAssets::JavascriptsController do describe "routing" do attr_reader :path context "given a simple path" do before do @path = '/javascripts/asset.js' end it "is able to recognize the path" do pending "my ability to overcome the challenges of spec'ing this working behavior" { :get => path }.should be_routable end it "is able to generate the path" do javascripts_path(:asset, :format => :js).should == path end end context "given a complex path" do before do @path = '/javascripts/path/to/asset.js' end it "is able to recognize the path" do pending "my ability to overcome the challenges of spec'ing this working behavior" { :get => path }.should be_routable end it "is able to generate the path" do pending "my ability to overcome the challenges of spec'ing this working behavior" javascripts_path('path/to/asset', :format => :js).should == path end end end end
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
engine-assets-0.2.0 | spec/routing/javascripts_routing_spec.rb |