What are valid values for rspec :type?












-1















In an rspec test, it is possible to specify the type of the test e.g.



it 'should behave', type: :system do
...
end


What are the valid values of :type, if so, where is it documented.










share|improve this question























  • For those voting to close this, the place that this information is found in the Relish documentation, is under 'Directory', which once you understand it is obvious, but hardly likely to come up in a google search looking for valid values for rspec :type

    – Obromios
    Nov 15 '18 at 20:35











  • As well, there are custom types, so this question is useful for someone trying to work out if a particular spec type is custom or standard.

    – Obromios
    Nov 22 '18 at 4:52
















-1















In an rspec test, it is possible to specify the type of the test e.g.



it 'should behave', type: :system do
...
end


What are the valid values of :type, if so, where is it documented.










share|improve this question























  • For those voting to close this, the place that this information is found in the Relish documentation, is under 'Directory', which once you understand it is obvious, but hardly likely to come up in a google search looking for valid values for rspec :type

    – Obromios
    Nov 15 '18 at 20:35











  • As well, there are custom types, so this question is useful for someone trying to work out if a particular spec type is custom or standard.

    – Obromios
    Nov 22 '18 at 4:52














-1












-1








-1








In an rspec test, it is possible to specify the type of the test e.g.



it 'should behave', type: :system do
...
end


What are the valid values of :type, if so, where is it documented.










share|improve this question














In an rspec test, it is possible to specify the type of the test e.g.



it 'should behave', type: :system do
...
end


What are the valid values of :type, if so, where is it documented.







ruby-on-rails rspec






share|improve this question













share|improve this question











share|improve this question




share|improve this question










asked Nov 14 '18 at 23:10









ObromiosObromios

4,39023167




4,39023167













  • For those voting to close this, the place that this information is found in the Relish documentation, is under 'Directory', which once you understand it is obvious, but hardly likely to come up in a google search looking for valid values for rspec :type

    – Obromios
    Nov 15 '18 at 20:35











  • As well, there are custom types, so this question is useful for someone trying to work out if a particular spec type is custom or standard.

    – Obromios
    Nov 22 '18 at 4:52



















  • For those voting to close this, the place that this information is found in the Relish documentation, is under 'Directory', which once you understand it is obvious, but hardly likely to come up in a google search looking for valid values for rspec :type

    – Obromios
    Nov 15 '18 at 20:35











  • As well, there are custom types, so this question is useful for someone trying to work out if a particular spec type is custom or standard.

    – Obromios
    Nov 22 '18 at 4:52

















For those voting to close this, the place that this information is found in the Relish documentation, is under 'Directory', which once you understand it is obvious, but hardly likely to come up in a google search looking for valid values for rspec :type

– Obromios
Nov 15 '18 at 20:35





For those voting to close this, the place that this information is found in the Relish documentation, is under 'Directory', which once you understand it is obvious, but hardly likely to come up in a google search looking for valid values for rspec :type

– Obromios
Nov 15 '18 at 20:35













As well, there are custom types, so this question is useful for someone trying to work out if a particular spec type is custom or standard.

– Obromios
Nov 22 '18 at 4:52





As well, there are custom types, so this question is useful for someone trying to work out if a particular spec type is custom or standard.

– Obromios
Nov 22 '18 at 4:52












1 Answer
1






active

oldest

votes


















0














From the Relish documentation



- Model specs: type: `:model`
- Controller specs: type: `:controller`
- Request specs: type: `:request`
- Feature specs: type: `:feature`
- View specs: type: `:view`
- Helper specs: type: `:helper`
- Mailer specs: type: `:mailer`
- Routing specs: type: `:routing`
- Job specs: type: `:job`
- System specs: type: `:system`


Also, as commented by arieljuod, you can have custom spec types






share|improve this answer





















  • 2





    Just for completeness, those are the default, but it can be anything defining custom types typefast.blog/custom-spec-types-with-rspec

    – arieljuod
    Nov 15 '18 at 1:29











Your Answer






StackExchange.ifUsing("editor", function () {
StackExchange.using("externalEditor", function () {
StackExchange.using("snippets", function () {
StackExchange.snippets.init();
});
});
}, "code-snippets");

StackExchange.ready(function() {
var channelOptions = {
tags: "".split(" "),
id: "1"
};
initTagRenderer("".split(" "), "".split(" "), channelOptions);

StackExchange.using("externalEditor", function() {
// Have to fire editor after snippets, if snippets enabled
if (StackExchange.settings.snippets.snippetsEnabled) {
StackExchange.using("snippets", function() {
createEditor();
});
}
else {
createEditor();
}
});

function createEditor() {
StackExchange.prepareEditor({
heartbeatType: 'answer',
autoActivateHeartbeat: false,
convertImagesToLinks: true,
noModals: true,
showLowRepImageUploadWarning: true,
reputationToPostImages: 10,
bindNavPrevention: true,
postfix: "",
imageUploader: {
brandingHtml: "Powered by u003ca class="icon-imgur-white" href="https://imgur.com/"u003eu003c/au003e",
contentPolicyHtml: "User contributions licensed under u003ca href="https://creativecommons.org/licenses/by-sa/3.0/"u003ecc by-sa 3.0 with attribution requiredu003c/au003e u003ca href="https://stackoverflow.com/legal/content-policy"u003e(content policy)u003c/au003e",
allowUrls: true
},
onDemand: true,
discardSelector: ".discard-answer"
,immediatelyShowMarkdownHelp:true
});


}
});














draft saved

draft discarded


















StackExchange.ready(
function () {
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fstackoverflow.com%2fquestions%2f53310124%2fwhat-are-valid-values-for-rspec-type%23new-answer', 'question_page');
}
);

Post as a guest















Required, but never shown

























1 Answer
1






active

oldest

votes








1 Answer
1






active

oldest

votes









active

oldest

votes






active

oldest

votes









0














From the Relish documentation



- Model specs: type: `:model`
- Controller specs: type: `:controller`
- Request specs: type: `:request`
- Feature specs: type: `:feature`
- View specs: type: `:view`
- Helper specs: type: `:helper`
- Mailer specs: type: `:mailer`
- Routing specs: type: `:routing`
- Job specs: type: `:job`
- System specs: type: `:system`


Also, as commented by arieljuod, you can have custom spec types






share|improve this answer





















  • 2





    Just for completeness, those are the default, but it can be anything defining custom types typefast.blog/custom-spec-types-with-rspec

    – arieljuod
    Nov 15 '18 at 1:29
















0














From the Relish documentation



- Model specs: type: `:model`
- Controller specs: type: `:controller`
- Request specs: type: `:request`
- Feature specs: type: `:feature`
- View specs: type: `:view`
- Helper specs: type: `:helper`
- Mailer specs: type: `:mailer`
- Routing specs: type: `:routing`
- Job specs: type: `:job`
- System specs: type: `:system`


Also, as commented by arieljuod, you can have custom spec types






share|improve this answer





















  • 2





    Just for completeness, those are the default, but it can be anything defining custom types typefast.blog/custom-spec-types-with-rspec

    – arieljuod
    Nov 15 '18 at 1:29














0












0








0







From the Relish documentation



- Model specs: type: `:model`
- Controller specs: type: `:controller`
- Request specs: type: `:request`
- Feature specs: type: `:feature`
- View specs: type: `:view`
- Helper specs: type: `:helper`
- Mailer specs: type: `:mailer`
- Routing specs: type: `:routing`
- Job specs: type: `:job`
- System specs: type: `:system`


Also, as commented by arieljuod, you can have custom spec types






share|improve this answer















From the Relish documentation



- Model specs: type: `:model`
- Controller specs: type: `:controller`
- Request specs: type: `:request`
- Feature specs: type: `:feature`
- View specs: type: `:view`
- Helper specs: type: `:helper`
- Mailer specs: type: `:mailer`
- Routing specs: type: `:routing`
- Job specs: type: `:job`
- System specs: type: `:system`


Also, as commented by arieljuod, you can have custom spec types







share|improve this answer














share|improve this answer



share|improve this answer








edited Nov 22 '18 at 4:50









Obromios

4,39023167




4,39023167










answered Nov 15 '18 at 1:22









mkrlmkrl

470214




470214








  • 2





    Just for completeness, those are the default, but it can be anything defining custom types typefast.blog/custom-spec-types-with-rspec

    – arieljuod
    Nov 15 '18 at 1:29














  • 2





    Just for completeness, those are the default, but it can be anything defining custom types typefast.blog/custom-spec-types-with-rspec

    – arieljuod
    Nov 15 '18 at 1:29








2




2





Just for completeness, those are the default, but it can be anything defining custom types typefast.blog/custom-spec-types-with-rspec

– arieljuod
Nov 15 '18 at 1:29





Just for completeness, those are the default, but it can be anything defining custom types typefast.blog/custom-spec-types-with-rspec

– arieljuod
Nov 15 '18 at 1:29




















draft saved

draft discarded




















































Thanks for contributing an answer to Stack Overflow!


  • Please be sure to answer the question. Provide details and share your research!

But avoid



  • Asking for help, clarification, or responding to other answers.

  • Making statements based on opinion; back them up with references or personal experience.


To learn more, see our tips on writing great answers.




draft saved


draft discarded














StackExchange.ready(
function () {
StackExchange.openid.initPostLogin('.new-post-login', 'https%3a%2f%2fstackoverflow.com%2fquestions%2f53310124%2fwhat-are-valid-values-for-rspec-type%23new-answer', 'question_page');
}
);

Post as a guest















Required, but never shown





















































Required, but never shown














Required, but never shown












Required, but never shown







Required, but never shown

































Required, but never shown














Required, but never shown












Required, but never shown







Required, but never shown







Popular posts from this blog

Xamarin.iOS Cant Deploy on Iphone

Glorious Revolution

Dulmage-Mendelsohn matrix decomposition in Python