require 'spec_helper'

describe Pushwoosh do
  before do
    Pushwoosh.configure do |config|
      config.application = '5555-5555'
      config.auth = 'abcefg'
    end
  end

  describe '.notify_all' do
    context 'when has message' do
      it "sends push message" do
        VCR.use_cassette 'pushwoosh/push_notification' do
          response = described_class.notify_all("Testing")
          expect(response.status_code).to eq 200
        end
      end
    end

    context 'when message is empty' do
      it  'raises a error if message is empty' do
        VCR.use_cassette 'pushwoosh/empty_message_push' do
          expect { described_class.notify_all("") }.to raise_error
        end
      end
    end
  end
end

require 'spec_helper'

describe Pushwoosh do
  before do
    Pushwoosh.configure do |config|
      config.application = '5555-5555'
      config.auth = 'abcefg'
    end
  end

  describe '.notify_all' do
    context 'when has message' do
      it 'sends push message' do
        VCR.use_cassette 'pushwoosh/push_notification' do
          response = described_class.notify_all("Testing")
          expect(response.status_code).to eq 200
        end
      end
    end

    context 'when message is empty' do
      it  'raises a error if message is empty' do
        VCR.use_cassette 'pushwoosh/empty_message_push' do
          expect { described_class.notify_all("") }.to raise_error
        end
      end
    end
  end
end

Fix quotes in pushwoosh spec
Fix quotes in pushwoosh spec
