Logo: Relish

  1. Sign in

Project: Middleman-more

Sprockets

Scenarios
Sprockets JS require
Given
the Server is running at "sprockets-app2"
When
I go to "/javascripts/sprockets_base.js"
Then
I should see "sprockets_sub_function"
Sprockets JS require with custom :js_dir
Given
the Server is running at "sprockets-app"
When
I go to "/library/js/sprockets_base.js"
Then
I should see "sprockets_sub_function"
Plain JS require with custom :js_dir
Given
the Server is running at "sprockets-app"
When
I go to "/library/css/plain.css"
Then
I should see "helloWorld"
Sprockets JS should have access to yaml data
Given
the Server is running at "sprockets-app2"
When
I go to "/javascripts/multiple_engines.js"
Then
I should see "Hello One"
Multiple engine files should build correctly
Given
a successfully built app at "sprockets-app2"
When
I cd to "build"
Then
a file named "javascripts/multiple_engines.js" should exist
And
the file "javascripts/multiple_engines.js" should contain "Hello One"
Sprockets CSS require //require
Given
the Server is running at "sprockets-app2"
When
I go to "/stylesheets/sprockets_base1.css"
Then
I should see "hello"
Sprockets CSS require @import
Given
the Server is running at "sprockets-app2"
When
I go to "/stylesheets/sprockets_base2.css"
Then
I should see "hello"
Sprockets CSS require with custom :css_dir //require
Given
the Server is running at "sprockets-app"
When
I go to "/library/css/sprockets_base1.css"
Then
I should see "hello"
Plain CSS require with custom :css_dir
Given
the Server is running at "sprockets-app"
When
I go to "/library/css/plain.css"
Then
I should see "helloWorld"
Sprockets CSS require with custom :css_dir @import
Given
the Server is running at "sprockets-app"
When
I go to "/library/css/sprockets_base2.css"
Then
I should see "hello"

Last published about 6 years ago by middleman.