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)
|
def emoji_icon(name, unicode = nil)
|
||||||
unicode ||= Emoji.emoji_filename(name)
|
unicode ||= Emoji.emoji_filename(name)
|
||||||
|
|
||||||
content_tag :div, "", class: "icon emoji-icon emoji-#{unicode}",
|
content_tag :div, "",
|
||||||
"data-emoji" => name, "data-unicode-name" => unicode
|
class: "icon emoji-icon emoji-#{unicode}",
|
||||||
|
"data-emoji" => name,
|
||||||
|
"data-unicode-name" => unicode
|
||||||
end
|
end
|
||||||
|
|
||||||
def emoji_author_list(notes, current_user)
|
def emoji_author_list(notes, current_user)
|
||||||
|
|
|
@ -15,8 +15,8 @@ class Spinach::Features::AwardEmoji < Spinach::FeatureSteps
|
||||||
end
|
end
|
||||||
|
|
||||||
step 'I click to emoji in the picker' do
|
step 'I click to emoji in the picker' do
|
||||||
page.within '.awards-menu' do
|
page.within '.emoji-menu' do
|
||||||
page.first('img').click
|
page.first('.emoji-icon').click
|
||||||
end
|
end
|
||||||
end
|
end
|
||||||
|
|
||||||
|
|
|
@ -127,12 +127,6 @@ describe IssuesHelper do
|
||||||
it { is_expected.to eq("!1, !2, or !3") }
|
it { is_expected.to eq("!1, !2, or !3") }
|
||||||
end
|
end
|
||||||
|
|
||||||
describe "#emoji_list" do
|
|
||||||
it "returns url" do
|
|
||||||
expect(emoji_list).to be_kind_of(Array)
|
|
||||||
end
|
|
||||||
end
|
|
||||||
|
|
||||||
describe "#note_active_class" do
|
describe "#note_active_class" do
|
||||||
before do
|
before do
|
||||||
@note = create :note
|
@note = create :note
|
||||||
|
|
Loading…
Reference in a new issue