2013-10-08 10:21:40 -04:00
|
|
|
require 'spec_helper'
|
|
|
|
|
|
|
|
describe ProjectsHelper do
|
2014-12-31 08:07:48 -05:00
|
|
|
describe "#project_status_css_class" do
|
|
|
|
it "returns appropriate class" do
|
2015-02-12 13:17:35 -05:00
|
|
|
expect(project_status_css_class("started")).to eq("active")
|
|
|
|
expect(project_status_css_class("failed")).to eq("danger")
|
|
|
|
expect(project_status_css_class("finished")).to eq("success")
|
2014-12-31 08:07:48 -05:00
|
|
|
end
|
|
|
|
end
|
2013-10-08 10:21:40 -04:00
|
|
|
end
|