decko-commons/decko

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

Summary

Maintainability
A
0 mins
Test Coverage

Use let instead of an instance variable.
Open

        expect(@format.render_raw).to eq("u1@user.com")

Use let instead of an instance variable.
Open

        @email_card.update content: "joe@user.com"

Use let instead of an instance variable.
Open

      expect(@format.render_raw).to match(/denied/)

Use let instead of an instance variable.
Open

        expect(@email_card.errors[:content].first)

Use let instead of an instance variable.
Open

        expect(@email_card.errors[:content].first).to match(/must be unique/)

Use let instead of an instance variable.
Open

          expect(@email_card.db_content).to eq("quire@example.com")

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

  context "+*account+*email" do

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

    context "update" do

Use let instead of an instance variable.
Open

        expect(@format.render_raw).to eq("u1@user.com")

Use let instead of an instance variable.
Open

        @email_card.update content: "boop"

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

  context "<User>+*email" do

Use let instead of an instance variable.
Open

      @format = @card.format

Use let instead of an instance variable.
Open

          @email_card.update! content: "QuIrE@example.com"

Use let instead of an instance variable.
Open

      expect(@card).not_to be_ok(:read)

There are no issues that match your filters.

Category
Status