27 lines
668 B
Ruby
27 lines
668 B
Ruby
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 |