Skip to content
Snippets Groups Projects
Commit bc9467cc authored by Valery Sizov's avatar Valery Sizov
Browse files

fix specs

parent d361e1df
No related branches found
No related tags found
1 merge request!2180Emoji picker: add "frequently used" category
Pipeline #
Loading
Loading
@@ -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)
Loading
Loading
Loading
Loading
@@ -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
 
Loading
Loading
Loading
Loading
@@ -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
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment