Sha256: a6667968e7e9aa0a5671a0058a5f24c7952571d0eda950817b5ed90d42b93348
Contents?: true
Size: 760 Bytes
Versions: 8
Compression:
Stored size: 760 Bytes
Contents
# frozen_string_literal: true require "rails_helper" module Archangel RSpec.describe ApplicationHelper, type: :helper, disable: :verify_partial_doubles do before do allow(helper).to receive(:current_site).and_return(create(:site)) end context "#locale" do it "returns default application locale" do expect(helper.locale).to eq("en") end end context "#text_direction" do it "returns default `ltr` text direction" do expect(helper.text_direction).to eq("ltr") end it "returns rtl text direction" do allow(helper).to receive(:text_direction).and_return("rtl") expect(helper.text_direction).to eq("rtl") end end end end
Version data entries
8 entries across 8 versions & 1 rubygems