|
|
|
|
@ -183,8 +183,9 @@ RSpec.describe FiltersHelper do
|
|
|
|
|
OpenStruct.new(id: parent_organisation.id, name: "Parent organisation"), |
|
|
|
|
OpenStruct.new(id: 9_999_999, name: "Other organisation"), |
|
|
|
|
]) |
|
|
|
|
end |
|
|
|
|
|
|
|
|
|
context "when no organisation is selected in the filters" do |
|
|
|
|
context "when no organisation is selected in the filters" do |
|
|
|
|
it "returns an empty list" do |
|
|
|
|
expect(owning_organisation_filter_options(user.reload, "lettings_logs")).to eq([ |
|
|
|
|
OpenStruct.new(id: "", name: "Select an option"), |
|
|
|
|
|