{"action":"opened","issue":{"url":"https://api.github.com/repos/mbleigh/seed-fu/issues/102","repository_url":"https://api.github.com/repos/mbleigh/seed-fu","labels_url":"https://api.github.com/repos/mbleigh/seed-fu/issues/102/labels{/name}","comments_url":"https://api.github.com/repos/mbleigh/seed-fu/issues/102/comments","events_url":"https://api.github.com/repos/mbleigh/seed-fu/issues/102/events","html_url":"https://github.com/mbleigh/seed-fu/issues/102","id":141829725,"number":102,"title":"Fixtures are not loaded from db/fixtures/test even when Rails.env is set to test.","user":{"login":"Fornacula","id":1921059,"avatar_url":"https://avatars.githubusercontent.com/u/1921059?v=3","gravatar_id":"","url":"https://api.github.com/users/Fornacula","html_url":"https://github.com/Fornacula","followers_url":"https://api.github.com/users/Fornacula/followers","following_url":"https://api.github.com/users/Fornacula/following{/other_user}","gists_url":"https://api.github.com/users/Fornacula/gists{/gist_id}","starred_url":"https://api.github.com/users/Fornacula/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/Fornacula/subscriptions","organizations_url":"https://api.github.com/users/Fornacula/orgs","repos_url":"https://api.github.com/users/Fornacula/repos","events_url":"https://api.github.com/users/Fornacula/events{/privacy}","received_events_url":"https://api.github.com/users/Fornacula/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":null,"milestone":null,"comments":0,"created_at":"2016-03-18T10:32:51Z","updated_at":"2016-03-18T10:32:51Z","closed_at":null,"body":"I am working in `development` environment by default but when I made a custom rake task for seeding **only** my test-database then after setting `Rails.env='test'` it seems that `SeedFu.fixture_paths` is not affected by it at all (but as I understand then it should).\r\nWhen I logged out the fixtures paths (`SeedFu.fixture_paths`) after changing Rails environment to test I got \r\n\r\n> [\"/home/me/developments/myapp/db/fixtures\", \"/home/me/developments/myapp/db/fixtures/development\"]\r\n\r\nMy custom rake task under `lib/tasks/db.rake` looks like this:\r\n\r\n```\r\nnamespace :db do\r\n  desc \"Seed_fu only in test-database\"\r\n  task seed_fu_test: :environment do\r\n  \tputs \"Seeding will be made in test-base ONLY!\"\r\n        Rails.env = 'test'\r\n  \tputs \"====== #{SeedFu.fixture_paths}\"\r\n        \r\n        # Nothing happens here because `db/fixtures/development/` folder doesn't exist.\r\n        # Rails.env is set to 'test' though so I assume `db/fixtures/test/` folder should be used as a path \r\n\tRake::Task[\"db:seed_fu\"].execute\r\n  end\r\nend\r\n```\r\n\r\n**But** when I do `rake db:seed_fu test` **or** `rake db:seed_fu RAILS_ENV='test'` then my test-database gets seeded as needed"}}