vidpush/spec/helpers/helpers_spec.rb

27 lines
668 B
Ruby
Raw Normal View History

2014-04-24 21:13:39 +00:00
require 'spec_helper'
describe ApplicationHelper, 'helpers' do
it "gets all voiceovers" do
expect(voiceoverselection_list).to include(["1 - Male", 1])
end
it "gets a voiceover" do
expect(voiceoverselection_list(item: 1)).to eq("1 - Male")
end
it "gets all music selections" do
expect(musicselection_list).to include(["0 - No Preference", 0])
end
it "gets a music selection" do
expect(musicselection_list(item: 0)).to eq("0 - No Preference")
end
it "gets all states" do
expect(us_states).to include(['New Hampshire', 'NH'])
end
it "gets a state" do
expect(us_states(item: 'NH')).to eq("New Hampshire")
end
end