mod/account/spec/set/all/account_spec.rb
Start context description with 'when', 'with', or 'without'. Open
Open
context "updates" do
- Create a ticketCreate a ticket
- Exclude checks
Use let
instead of an instance variable. Open
Open
.to eq([Card::AnyoneSignedInID, Card::SharkID, @joe_user_card.id])
- Create a ticketCreate a ticket
- Exclude checks
Use let
instead of an instance variable. Open
Open
@parties = @joe_user_card.parties # NOTE: must be called to test resets
- Create a ticketCreate a ticket
- Exclude checks
Use let
instead of an instance variable. Open
Open
new_parties = [Card::AnyoneSignedInID, Card::SharkID, r1.id, @joe_user_card.id]
- Create a ticketCreate a ticket
- Exclude checks
Use let
instead of an instance variable. Open
Open
expect(ids.length).to eq(@read_rules.size + 11)
- Create a ticketCreate a ticket
- Exclude checks
Beware of using before(:all)
as it may cause state to leak between tests. If you are using rspec-rails
, and use_transactional_fixtures
is enabled, then records created in before(:all)
are not automatically rolled back. Open
Open
before(:all) do
- Create a ticketCreate a ticket
- Exclude checks
Start context description with 'when', 'with', or 'without'. Open
Open
context "for Joe User" do
- Create a ticketCreate a ticket
- Exclude checks
Use let
instead of an instance variable. Open
Open
expect(@parties)
- Create a ticketCreate a ticket
- Exclude checks
Use let
instead of an instance variable. Open
Open
Card::Auth.as_bot { r1_members.items = [@joe_user_card.id] }
- Create a ticketCreate a ticket
- Exclude checks
Use let
instead of an instance variable. Open
Open
expect(@read_rules).to be_member(Card.fetch("*all+*read").id)
- Create a ticketCreate a ticket
- Exclude checks