fix specs
This commit is contained in:
parent
e5eb700d5e
commit
0ae0881250
3 changed files with 6 additions and 10 deletions
|
@ -97,8 +97,10 @@ module IssuesHelper
|
|||
def emoji_icon(name, unicode = nil)
|
||||
unicode ||= Emoji.emoji_filename(name)
|
||||
|
||||
content_tag :div, "", class: "icon emoji-icon emoji-#{unicode}",
|
||||
"data-emoji" => name, "data-unicode-name" => unicode
|
||||
content_tag :div, "",
|
||||
class: "icon emoji-icon emoji-#{unicode}",
|
||||
"data-emoji" => name,
|
||||
"data-unicode-name" => unicode
|
||||
end
|
||||
|
||||
def emoji_author_list(notes, current_user)
|
||||
|
|
|
@ -15,8 +15,8 @@ class Spinach::Features::AwardEmoji < Spinach::FeatureSteps
|
|||
end
|
||||
|
||||
step 'I click to emoji in the picker' do
|
||||
page.within '.awards-menu' do
|
||||
page.first('img').click
|
||||
page.within '.emoji-menu' do
|
||||
page.first('.emoji-icon').click
|
||||
end
|
||||
end
|
||||
|
||||
|
|
|
@ -127,12 +127,6 @@ describe IssuesHelper do
|
|||
it { is_expected.to eq("!1, !2, or !3") }
|
||||
end
|
||||
|
||||
describe "#emoji_list" do
|
||||
it "returns url" do
|
||||
expect(emoji_list).to be_kind_of(Array)
|
||||
end
|
||||
end
|
||||
|
||||
describe "#note_active_class" do
|
||||
before do
|
||||
@note = create :note
|
||||
|
|
Loading…
Reference in a new issue