decko-commons/decko

View on GitHub
mod/account/spec/set/right/account_spec.rb

Summary

Maintainability
A
0 mins
Test Coverage

Use let instead of an instance variable.
Open

      expect(@mail.to).to eq([@email])

Use let instead of an instance variable.
Open

      ["/update/#{@account.name.url_key}",

Start context description with 'when', 'with', or 'without'.
Open

    context "valid user" do

Use let instead of an instance variable.
Open

      @account = Card::Auth.find_account_by_email(@email)

Use let instead of an instance variable.
Open

      raw_source = @mail.parts[0].body.raw_source

Use let instead of an instance variable.
Open

      body = @mail.parts[0].body.raw_source

Use let instead of an instance variable.
Open

      expect(@mail.to).to eq([@email])

Use let instead of an instance variable.
Open

      @account.send_verification_email

Use let instead of an instance variable.
Open

      expect(Card::Auth.current_id).to eq(@account.left_id)

Use let instead of an instance variable.
Open

      @account.email_card.update! content: "joe2@user.com"

Use let instead of an instance variable.
Open

      @account = Card::Auth.find_account_by_email(@email)

Use let instead of an instance variable.
Open

      ["/update/#{@account.left.name.url_key}",

Use let instead of an instance variable.
Open

      expect(@mail.parts[0].body.raw_source).to include(url)

Use let instead of an instance variable.
Open

      assert_equal @account, authenticated

Use let instead of an instance variable.
Open

      @account = Card::Auth.find_account_by_email(@email)

Use let instead of an instance variable.
Open

      @account.update! trigger: :reset_password

Use let instead of an instance variable.
Open

      body = @mail.parts[0].body.raw_source

Use let instead of an instance variable.
Open

      @account.password_card.update!(content: "new Pas5word!")

Use let instead of an instance variable.
Open

      assert_equal @account, authenticated

Use let instead of an instance variable.
Open

      Card::Env.params[:token] = Card::Auth::Token.encode @account.left_id, extra_payload

Use let instead of an instance variable.
Open

      expect(@mail.parts[0].body.raw_source).to include(msg)

Use let instead of an instance variable.
Open

      @account.send_password_reset_email

Use let instead of an instance variable.
Open

      raw_source = @mail.parts[0].body.raw_source

There are no issues that match your filters.

Category
Status