11 lines
No EOL
490 B
Ruby
11 lines
No EOL
490 B
Ruby
And /^Alice has a post mentioning Bob$/ do
|
|
alice = User.find_by_email 'alice@alice.alice'
|
|
bob = User.find_by_email 'bob@bob.bob'
|
|
aspect = alice.aspects.where(:name => "Besties").first
|
|
alice.post(:status_message, :text => "@{Bob Jones; #{bob.person.diaspora_handle}}", :to => aspect)
|
|
end
|
|
|
|
And /^I mention Alice in the publisher$/ do
|
|
alice = User.find_by_email 'alice@alice.alice'
|
|
fill_in 'status_message_fake_text', :with => "@{Alice Smith ; #{alice.person.diaspora_handle}}"
|
|
end |