This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
defmodule IntroToSoftwareTesting.FaultyPrograms do | |
@moduledoc """ | |
Supports exercises from the book Introduction To Sofware Testing, section 1.2 | |
""" | |
@doc """ | |
findLast returns index of last element in x list that is equal to y. | |
If there is no such element, returns -1 | |
""" | |
@doc """ | |
findLast returns index of last element in x list that is equal to y. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
def start(_type, _args) do | |
if Application.fetch_env!(:your_app_name, :production) do | |
PhoenixSwagger.Validator.parse_swagger_schema( | |
Path.join(["#{:code.priv_dir(:your_app_name)}", "static", "swagger.json"]) | |
) | |
else | |
PhoenixSwagger.Validator.parse_swagger_schema("priv/static/swagger.json") | |
end | |
// ... rest of your Phoenix Application start up code. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
defmodule Testivator.CRM.DatafileSpec do | |
@moduledoc """ | |
This module holds espec spec demonstrations for CRM.Datafile module. | |
""" | |
use ESpec.Phoenix, async: false, model: DataFile | |
alias Testivator.CRM.DataFile | |
alias Testivator.File | |
import Mock | |
context "Changeset" do |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
defmodule Testivator.CRM.DataFile do | |
@moduledoc """ | |
DataFile schema | |
""" | |
use Testivator.Web, :model | |
use Arc.Ecto.Schema | |
alias Testivator.CRM.Charter | |
alias Testivator.CRM.DataFile | |
schema "datafiles" do |