decko-commons/decko

View on GitHub
mod/carrierwave/spec/set/type/image_spec.rb

Summary

Maintainability
A
0 mins
Test Coverage

Name your test subject if you need to reference it explicitly.
Open

        .to eq "~#{subject.id}/#{subject.last_action_id}.jpg"

Name your test subject if you need to reference it explicitly.
Open

        .to eq "~#{subject.id}/#{subject.last_action_id}.jpg"

Name your test subject if you need to reference it explicitly.
Open

        .to eq "/files/~#{subject.id}/#{subject.last_action_id}-original.jpg"

Name your test subject if you need to reference it explicitly.
Open

        expect(subject.image.size).to eq 8533

Name your test subject if you need to reference it explicitly.
Open

        act_summary = subject.format.render_content_changes

Name your test subject if you need to reference it explicitly.
Open

          .to eq "/files/:#{subject.codename}/bootstrap-medium.png"

Name your test subject if you need to reference it explicitly.
Open

        current_url = subject.image.versions[:medium].url

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

  context "newly created image card" do

Name your test subject if you need to reference it explicitly.
Open

      expect(subject.image.url).to eq "/files/:cerulean_skin_image/bootstrap-original.png"

Name your test subject if you need to reference it explicitly.
Open

      path = subject.image.path

Name your test subject if you need to reference it explicitly.
Open

          .to eq "/files/~#{subject.id}/#{subject.last_action_id}-original.gif"

Name your test subject if you need to reference it explicitly.
Open

      expect(subject.image.size).to be_positive

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

    context "updated file card" do

Name your test subject if you need to reference it explicitly.
Open

        subject.update! image: File.new(CarrierWave::TestFile.path("rails.gif"))

Name your test subject if you need to reference it explicitly.
Open

      expect(subject.content)

Name your test subject if you need to reference it explicitly.
Open

      expect(subject.last_action.comment).to eq "mao2.jpg"

Name your test subject if you need to reference it explicitly.
Open

        .to eq "/files/~#{subject.id}/#{subject.last_action_id}-original.jpg"

Name your test subject if you need to reference it explicitly.
Open

        subject.update!(

Name your test subject if you need to reference it explicitly.
Open

        expect(subject.image.original_filename).to eq "rails.gif"

Name your test subject if you need to reference it explicitly.
Open

        .to eq "/files/~#{subject.id}/#{subject.last_action_id}-original.gif"

Name your test subject if you need to reference it explicitly.
Open

      expect(subject.image.size).to eq 6836

Name your test subject if you need to reference it explicitly.
Open

      expect(subject.image.icon.size).to be_positive

Name your test subject if you need to reference it explicitly.
Open

          .to eq("/files/~#{subject.id}/#{subject.last_action_id}-medium.jpg")

Name your test subject if you need to reference it explicitly.
Open

      expect(subject.image.icon.size).to be < 3000

Name your test subject if you need to reference it explicitly.
Open

      expect(subject.original_filename).to eq "mao2.jpg"

Name your test subject if you need to reference it explicitly.
Open

      medium_path = subject.image.medium.path

Name your test subject if you need to reference it explicitly.
Open

      expect(subject.image.small.size).to be_positive

Name your test subject if you need to reference it explicitly.
Open

      expect(subject.image.url)

Name your test subject if you need to reference it explicitly.
Open

        expect(subject.format.render!(:source))

Name your test subject if you need to reference it explicitly.
Open

          .to eq("/files/~#{subject.id}/#{subject.last_action_id}-medium.jpg")

Name your test subject if you need to reference it explicitly.
Open

      expect(subject.image.small.size).to be < 6000

Name your test subject if you need to reference it explicitly.
Open

      expect(subject.content).to eq ":#{subject.codename}/bootstrap.png"

Name your test subject if you need to reference it explicitly.
Open

          .to eq "/files/~#{subject.id}/#{subject.last_action_id}-original.gif"

Name your test subject if you need to reference it explicitly.
Open

        expect(subject.format.render_source)

Name your test subject if you need to reference it explicitly.
Open

      expect(subject.content).to eq ":#{subject.codename}/bootstrap.png"

Name your test subject if you need to reference it explicitly.
Open

      expect(subject.image.url)

Name your test subject if you need to reference it explicitly.
Open

      subject.delete_files_for_action(subject.last_action)

Name your test subject if you need to reference it explicitly.
Open

        .to eq "/files/~#{subject.id}/#{subject.last_action_id}-original.gif"

Name your test subject if you need to reference it explicitly.
Open

      small_path = subject.image.small.path

Name your test subject if you need to reference it explicitly.
Open

      subject.delete_files_for_action(subject.last_action)

Name your test subject if you need to reference it explicitly.
Open

        expect(subject.image.url)

There are no issues that match your filters.

Category
Status