class Object
Public Instance Methods
verify_stylesheet(stylesheet)
click to toggle source
# File lib/roadie/rspec/asset_provider.rb, line 5 def verify_stylesheet(stylesheet) expect(stylesheet).to_not be_nil # Name expect(stylesheet.name).to be_a(String) expect(stylesheet.name).to_not be_empty # We do not want to force clients to always return non-empty files. # Stylesheet#initialize should crash when given a non-valid CSS (like nil, # for example) # expect(stylesheet.blocks).to_not be_empty end