small refactor for ember actions
This commit is contained in:
@@ -37,6 +37,7 @@ Feature: Supplier section view
|
||||
And I wait 1 second
|
||||
Then the section table should not have any active list markings anymore
|
||||
And the list should be marked as closed
|
||||
And I wait 3 seconds
|
||||
|
||||
@javascript
|
||||
Scenario: Selecting a specific section limits the result to the lists and orders of those sections
|
||||
|
||||
@@ -12,4 +12,15 @@ describe User do
|
||||
user.supplier_name.should == I18n.t('user.unknown_supplier_name')
|
||||
end
|
||||
end
|
||||
|
||||
describe '#friends_name' do
|
||||
it "displays the auth data nickname if available" do
|
||||
user.auth_data = {'info' => {'name' => 'Benji setup', 'nickname' => 'Benji'}}
|
||||
user.friends_name.should == 'Benji'
|
||||
end
|
||||
|
||||
it 'falls back to unkown if not present' do
|
||||
user.friends_name.should == ''
|
||||
end
|
||||
end
|
||||
end
|
||||
|
||||
Reference in New Issue
Block a user