Sha256: c17fc877b136f3ea07b3719a65a4b1862ea45e8757c839a759cf44af8702bc20
Contents?: true
Size: 715 Bytes
Versions: 7
Compression:
Stored size: 715 Bytes
Contents
class AssetsRequestTest < AppRequestTest test :subject_class do assert subject_class == AssetsRequest end test :actions, :app, :js do env = { "LIZA_ACTION" => "app", "LIZA_FORMAT" => "js", } status, headers, body = subject_class.call env assert status == 200 assert headers["Framework"].to_s.start_with? "Liza" assert body.first.include? "JS file has been loaded" end test :actions, :app, :css do env = { "LIZA_ACTION" => "app", "LIZA_FORMAT" => "css", } status, headers, body = subject_class.call env assert status == 200 assert headers["Framework"].to_s.start_with? "Liza" assert body.first.include? "body {" end end
Version data entries
7 entries across 7 versions & 1 rubygems