Skip to content

Commit

Permalink
Fix spec, add new attributes
Browse files Browse the repository at this point in the history
  • Loading branch information
lpichler committed Aug 9, 2017
1 parent 682f3ae commit fb3feef
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion spec/helpers/application_helper/toolbar_builder_spec.rb
Expand Up @@ -47,6 +47,8 @@
:image => @button1.options[:button_icon],
:color => nil,
:text_display => @button1.options.key?(:display) ? @button1.options[:display] : true,
:enabled => true,
:disabled_text => nil,
:target_object => subject.id
}
expected_button_set = {
Expand All @@ -58,7 +60,6 @@
:text_display => @button_set.set_data.key?(:display) ? @button_set.set_data[:display] : true,
:buttons => [expected_button1]
}

expect(toolbar_builder.get_custom_buttons(subject.class, subject, Mixins::CustomButtons::Result.new(:single))).to eq([expected_button_set])
end

Expand Down

0 comments on commit fb3feef

Please sign in to comment.